[PATCH] Clear spinlocks in TDB

Volker Lendecke Volker.Lendecke at SerNet.DE
Sun Aug 12 15:59:06 GMT 2007


On Sun, Aug 12, 2007 at 02:29:44PM +0200, Jelmer Vernooij wrote:
> Debian currently contains a very old copy of standalone TDB that has
> been built with spinlocks and users have been developing with this
> version. Introducing a new version of TDB breaks all of their existing
> databases.

Can't you do something like

if (!(tdb->flags & CLEAR_IF_FIRST) && (have_spinlocks(tdb)))
{
	if (!upgrade(tdb)) {
		return -1;
	}
	goto again;
}

If this was the only hunk to tdb_open_ex I'd feel a bit
better.

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070812/c6b2f941/attachment.bin


More information about the samba-technical mailing list