[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#3824) slapadd/slapindex -q can break db_stat
> There are two ways of fixing this in the code:
>
> 1. Fix the bug in Berkeley DB. The patch is very simple, as shown
> here, but entails yet another patch to Berkeley DB, which I am loath
> to see needed:
This patch is corrupted. It should be:
--- env/env_region.c.O 2003-11-17 12:00:27.000000000 -0800
+++ env/env_region.c 2005-06-30 15:32:04.641094668 -0700
@@ -328,8 +328,10 @@
* If our caller wants them, return the flags this environment was
* initialized with.
*/
- if (init_flagsp != NULL)
+ if (init_flagsp != NULL) {
+ renv->init_flags |= *init_flagsp;
*init_flagsp = renv->init_flags;
+ }
/* Discard our lock. */
MUTEX_UNLOCK(dbenv, &renv->mutex);
--
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support