[Pkg-db-devel] Bug#345019: DB_REGISTER problem

Florian Weimer fw at deneb.enyo.de
Wed Dec 28 14:33:53 UTC 2005


Package: libdb4.4
Version: 4.4.16-3
Tags: upstream patch

The patch below (from Keith Bostic/Sleepycat, posted to the
comp.databases.berkeley-db newsgroup) fixes a problem with DB_REGISTER
support.  I'm not yet sure if this fixes my problem mentioned on the
pkg-db mailiung list, but I hope so.

--- env_register.c.orig	2005-12-28 15:28:21.000000000 +0100
+++ env_register.c	2005-12-28 15:30:59.000000000 +0100
@@ -217,9 +217,9 @@
 		if (nr != PID_LEN)
 			goto corrupt;
 
-		if (FLD_ISSET(
-		    dbenv->verbose, DB_VERB_REGISTER) && PID_ISEMPTY(buf)) {
-			__db_msg(dbenv, "%02u: EMPTY", lcnt);
+		if (PID_ISEMPTY(buf)) {
+			if (FLD_ISSET(dbenv->verbose, DB_VERB_REGISTER))
+				__db_msg(dbenv, "%02u: EMPTY", lcnt);
 			continue;
 		}
 





More information about the Pkg-db-devel mailing list