]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
gencache: Bail out of stabilize if we can not get the allrecord lock
authorVolker Lendecke <vl@samba.org>
Mon, 19 Sep 2016 21:29:21 +0000 (14:29 -0700)
committerStefan Metzmacher <metze@samba.org>
Thu, 13 Oct 2016 14:52:13 +0000 (16:52 +0200)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12045

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Sep 20 04:09:33 CEST 2016 on sn-devel-144

(cherry picked from commit b208499960eefef02d305a3bd59b03a7c2aafcac)

source3/lib/gencache.c

index 90eafaa7be2d221069e1e0b4861fbef10922ffef..7ac9eba92f68644541f2ad1077209caca255f3e6 100644 (file)
@@ -658,7 +658,7 @@ bool gencache_stabilize(void)
                return false;
        }
 
-       res = tdb_lockall(cache_notrans->tdb);
+       res = tdb_lockall_nonblock(cache_notrans->tdb);
        if (res != 0) {
                tdb_transaction_cancel(cache->tdb);
                DEBUG(10, ("Could not get allrecord lock on "