tag 425716 + patch thanks On Wed, May 23, 2007 at 04:14:44PM +0200, Ludovic Courtes wrote: > Package: tdb-dev > Version: 1.1.0-1 > Severity: grave > Justification: renders package unusable > > > Hi, > > The latest `libtdb' from SID fails to open databases created by the version > previously available in SID (whichever that was), i.e., `tdb_open ()' returns > NULL. This can be checked by simply running `tdbdump' on the database. > > For your convenience, I've put a database that reproduces the problem on-line: > > http://www.laas.fr/~lcourtes/tmp/failing-tdb-database.tdb > SHA1: c2c892e4e466092c74ffb923975056840ffcf43b > > Thanks, > Ludovic.
The problem is because of the deactivated spinlock code. The following
patch seems to fix the problem, but I'm unable to understand the
consequences properly (e.g. on a system where things using the old tdb
library could still exist, and believe to have locked the tdb ...).
--- common/open.c 2007-07-18 17:15:30.000000000 +0200
+++ common/open.c.new 2007-07-18 17:18:57.000000000 +0200
@@ -242,8 +242,7 @@
goto fail;
if (tdb->header.rwlocks != 0) {
- TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_open_ex: spinlocks no
longer supported\n"));
- goto fail;
+ TDB_LOG((tdb, TDB_DEBUG_WARNING, "tdb_open_ex: spinlocks no
longer supported\n"));
}
/* Is it already in the open list? If so, fail. */
--
·O· Pierre Habouzit
··O [EMAIL PROTECTED]
OOO http://www.madism.org
pgpbMp7tIwCjH.pgp
Description: PGP signature

