Results 1 to 2 of 2

Thread: Freeze and BDB Environments / Replication

  1. #1
    jesse@mind.net is offline Registered User
    Name: Jesse Williamson
    Organization: Musician's Friend, Inc.
    Project: musiciansfriend.com
    Join Date
    Aug 2005
    Posts
    11

    Freeze and BDB Environments / Replication

    Hello,

    When I try to pass a custom BerkeleyDB environment (with or without BDB replication enabled) to my Freeze (Ice 3.2.1) server, my program begins to experience failures in code that works as expected when the default environment is used.

    Current flags:
    u_int32_t dbenv_mode = S_IRUSR | S_IWUSR;
    u_int32_t dbenv_flags = DB_CREATE|DB_RECOVER|DB_THREAD|DB_INIT_MPOOL|DB_IN IT_TXN|DB_INIT_LOG|DB_INIT_LOCK|DB_INIT_REP;

    The application starts with DbEnv(0), configures replication, opens the environment, starts replication, and then passes the environment to Freeze::createConnection().

    I get either a segfault from calling find() on a freeze2cpp generated map<>, with replication disabled, or a Db:pen() failure from SharedDb.cpp if replication is enabled. If I don't try to install a custom environment, the server works normally.

    My guess is that I've got incompatible BDB flags, but I just can't seem to hit on the right combination. I have no DB_CONFIG in the environment directory.

    Anything extra special I need to do to get Freeze to work with BerkeleyDB
    replication? Is there something different between Ice-3.2.1 and the current version? Am I just trying to do this the wrong way?

    I'm happy to post the relevant code and whatnot, if this is not something with a well-known solution and further information is helpful..

    Thanks very much! I appreciate any help.
    _Jesse Williamson ;-};
    Musician's Friend, Inc.
    http://www.musiciansfriend.com
    [No Ice project at present.]

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Jesse,

    We do not support Berkeley DB replication with Freeze, and we have no plan to add support for this DB feature.

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. IceGrid Replication
    By b33fc0d3 in forum Help Center
    Replies: 2
    Last Post: 07-30-2009, 06:33 PM
  2. Replies: 8
    Last Post: 04-08-2009, 05:49 PM
  3. Replication Documentation
    By Ken Carpenter in forum Help Center
    Replies: 3
    Last Post: 10-29-2004, 04:54 AM
  4. Freeze and replication?
    By rhochmuth in forum Help Center
    Replies: 1
    Last Post: 05-08-2004, 03:24 PM
  5. Object Replication?
    By rstolle in forum Help Center
    Replies: 3
    Last Post: 03-29-2004, 04:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •