From: Volker Lendecke Date: Wed, 14 Jun 2017 11:57:56 +0000 (+0200) Subject: g_lock: open with LOCK_ORDER_3 X-Git-Tag: ldb-1.1.31~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9f32b2ea623a6ce976eb571232cdabeff160447;p=thirdparty%2Fsamba.git g_lock: open with LOCK_ORDER_3 xattr_tdb needs g_lock in a clustered environment. Nobody else uses LOCK_ORDER_3 at this moment, so this looks safe. The last one to use this was dbwrap_watch.tdb, and that's gone. The only other one was notify_index.tdb, and that's gone too. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c index 93423023822..198fe563eb9 100644 --- a/source3/lib/g_lock.c +++ b/source3/lib/g_lock.c @@ -193,7 +193,7 @@ struct g_lock_ctx *g_lock_ctx_init(TALLOC_CTX *mem_ctx, backend = db_open(result, db_path, 0, TDB_CLEAR_IF_FIRST|TDB_INCOMPATIBLE_HASH, O_RDWR|O_CREAT, 0600, - DBWRAP_LOCK_ORDER_2, + DBWRAP_LOCK_ORDER_3, DBWRAP_FLAG_NONE); TALLOC_FREE(db_path); if (backend == NULL) {