[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Error in environment joining in 4.3.27



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