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)
committerJeremy Allison <jra@samba.org>
Tue, 20 Sep 2016 02:09:33 +0000 (04:09 +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

source3/lib/gencache.c

index 5af6eb8d530504ddceb58f1fe68180be59125ba7..b5fed3df1078e2efff15891d700656bbfef41640 100644 (file)
@@ -655,7 +655,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 "