[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Error in environment joining in 4.3.27
- To: openldap-devel@OpenLDAP.org
- Subject: Re: Error in environment joining in 4.3.27
- From: Quanah Gibson-Mount <quanah@stanford.edu>
- Date: Thu, 31 Mar 2005 17:00:59 -0800
- In-reply-to: <1112270128.993398.22570@g14g2000cwa.googlegroups.com> (Michael Cahill's message of "31 Mar 2005 03:55:29 -0800")
- Organization: Stanford University, CA, USA
- References: <d2ens5$k5q$1@floyd.upc.intranet> <1112242238.613589.90950@z14g2000cwz.googlegroups.com> <d2gaj2$9lb$1@floyd.upc.intranet> <1112270128.993398.22570@g14g2000cwa.googlegroups.com>
- User-agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, usg-unix-v)
Michael Cahill <mjc@sleepycat.com> writes:
> Hi Volodymyr,
> You're right -- there is a bug in 4.3.27 related to using DB_CDB_ALLDB
> with DB_JOINENV.
> The fix is simple: this is the diff, but you'll need to apply it by
> hand. If you'd like a working patch, please contact
> support@sleepycat.com.
> --- env/env_open.c 4 Mar 2005 20:52:40 -0000 12.13
> +++ env/env_open.c 31 Mar 2005 11:53:17 -0000
> @@ -301,9 +301,8 @@
> LF_SET(DB_INIT_REP);
> if (FLD_ISSET(init_flags, DB_INITENV_TXN))
> LF_SET(DB_INIT_TXN);
> - if (FLD_ISSET(init_flags, DB_INITENV_CDB_ALLDB) &&
> - (ret = __env_set_flags(dbenv, DB_CDB_ALLDB, 1)) != 0)
> - goto err;
> + if (FLD_ISSET(init_flags, DB_INITENV_CDB_ALLDB))
> + F_SET(dbenv, DB_ENV_CDB_ALLDB);
> }
> /*
Yet another BDB 4.3.27 bug... This is the second patch I've seen recently
on the BDB newsgroup.
--Quanah
--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html