From fc366fc61db286ddf66b39c873d916f59e08e4a6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 19 Sep 2016 14:29:21 -0700 Subject: [PATCH] gencache: Bail out of stabilize if we can not get the allrecord lock Bug: https://bugzilla.samba.org/show_bug.cgi?id=12045 Signed-off-by: Volker Lendecke --- source3/lib/gencache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c index 5af6eb8..b5fed3d 100644 --- a/source3/lib/gencache.c +++ b/source3/lib/gencache.c @@ -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 " -- 2.7.4