diff options
author | Volker Lendecke <vl@samba.org> | 2009-09-23 15:41:06 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-09-23 18:50:33 +0200 |
commit | aece84f22de9aceb150a04b68dea18abcff968b2 (patch) | |
tree | 19330d6a523c21740824aba8dee7d0ffdf12cbc2 /source3 | |
parent | 76d95b9a2dcfff9df1865ffff74f0e9c32bce609 (diff) | |
download | samba-aece84f22de9aceb150a04b68dea18abcff968b2.tar.gz samba-aece84f22de9aceb150a04b68dea18abcff968b2.tar.bz2 samba-aece84f22de9aceb150a04b68dea18abcff968b2.zip |
s3:gencache: Remove some over-paranoid locking
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/gencache.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c index 5c030cddab..2f603dbb2d 100644 --- a/source3/lib/gencache.c +++ b/source3/lib/gencache.c @@ -220,11 +220,6 @@ bool gencache_del(const char *keystr) DEBUG(10, ("Deleting cache entry (key = %s)\n", keystr)); - if (tdb_lock_bystring(cache_notrans, keystr) == -1) { - DEBUG(5, ("Could not lock key for %s\n", keystr)); - return false; - } - /* * We delete an element by setting its timeout to 0. This way we don't * have to do a transaction on gencache.tdb every time we delete an @@ -236,7 +231,6 @@ bool gencache_del(const char *keystr) SAFE_FREE(value); ret = gencache_set(keystr, "", 0); } - tdb_unlock_bystring(cache_notrans, keystr); return ret; } |