diff options
author | Jeremy Allison <jra@samba.org> | 2000-12-06 00:05:15 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-12-06 00:05:15 +0000 |
commit | 7e4c4721b4fbfa71ce6712ec5b9f3e8e8a105147 (patch) | |
tree | 2df359e8d49573fd79674cbb8cd592ce896a93d0 /source3/tdb/tdbutil.c | |
parent | 1cd8538b7abf0970082074d7a114bb9d013d00b2 (diff) | |
download | samba-7e4c4721b4fbfa71ce6712ec5b9f3e8e8a105147.tar.gz samba-7e4c4721b4fbfa71ce6712ec5b9f3e8e8a105147.tar.bz2 samba-7e4c4721b4fbfa71ce6712ec5b9f3e8e8a105147.zip |
Changed to sourceforge tdb code. This includes spinlocks (so we now have
a --with-spinlocks option to configure, this does mean the on-disk tdb
format has changed, so 2.2alphaX sites will need to re-create their
tdb's. The upside is no more tdb fragmentation and a +5% on netbench.
Swings and roundabouts....
Jeremy.
(This used to be commit 9dea7b7c257db487f8ced7dad3fce92fba03ea91)
Diffstat (limited to 'source3/tdb/tdbutil.c')
-rw-r--r-- | source3/tdb/tdbutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/tdb/tdbutil.c b/source3/tdb/tdbutil.c index 92b8f9cbfb..3f17c0274e 100644 --- a/source3/tdb/tdbutil.c +++ b/source3/tdb/tdbutil.c @@ -32,7 +32,7 @@ int tdb_lock_bystring(TDB_CONTEXT *tdb, char *keyval) key.dptr = keyval; key.dsize = strlen(keyval)+1; - return tdb_lockchain(tdb, key); + return tdb_chainlock(tdb, key); } /* unlock a chain by string */ @@ -43,7 +43,7 @@ int tdb_unlock_bystring(TDB_CONTEXT *tdb, char *keyval) key.dptr = keyval; key.dsize = strlen(keyval)+1; - return tdb_unlockchain(tdb, key); + return tdb_chainunlock(tdb, key); } /* lock a chain by string key */ |