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

RE: bdb corruption



> -----Original Message-----
> From: Matthew Schumacher [mailto:matt.s@aptalaska.net]
 
> Hmmm,
> 
> I get an odd error when I do that:
> 
> # db_stat -d objectClass.bdb -s objectClass
> db_stat: hash: incompatible hash function
> db_stat: DB->open: objectClass.bdb:objectClass: Invalid argument
 

This is a bug in the 4.1.25 db_stat command, use this patch:

--- db_stat.c.X Thu Aug  8 08:32:54 2002
+++ db_stat.c   Wed Apr 16 20:34:04 2003
@@ -288,7 +288,7 @@
                                goto shutdown;
                        }
                        if ((ret = dbp->open(alt_dbp, NULL,
-                           db, subdb, DB_UNKNOWN, 0, 0)) != 0) {
+                           db, subdb, DB_UNKNOWN, DB_RDONLY, 0)) != 0) {
                                dbenv->err(dbenv,
                                   ret, "DB->open: %s:%s", db, subdb);
                                (void)alt_dbp->close(alt_dbp, 0);

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support