The Samba-Bugzilla – Attachment 10414 Details for
Bug 10922
In a cluster, mutexes don't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
look (text/plain), 1.06 KB, created by
Volker Lendecke
on 2014-11-06 11:41:26 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2014-11-06 11:41:26 UTC
Size:
1.06 KB
patch
obsolete
>From 15851569991008f2892d0dc765e7a0091d09d48b Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Thu, 6 Nov 2014 11:59:34 +0100 >Subject: [PATCH] dbwrap_ctdb: Pass on mutex flags to tdb_open > >Without this, ctdb can create a tdb file with mutex activated, but the >local tdb_open will not open the tdb due to strict flags checks whether >mutexes are possible. > >Signed-off-by: Volker Lendecke <vl@samba.org> >--- > source3/lib/dbwrap/dbwrap_ctdb.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c >index 0b30d9f..a52d598 100644 >--- a/source3/lib/dbwrap/dbwrap_ctdb.c >+++ b/source3/lib/dbwrap/dbwrap_ctdb.c >@@ -1616,7 +1616,8 @@ struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx, > result->lock_order = lock_order; > > /* only pass through specific flags */ >- tdb_flags &= TDB_SEQNUM|TDB_VOLATILE; >+ tdb_flags &= TDB_SEQNUM|TDB_VOLATILE| >+ TDB_MUTEX_LOCKING|TDB_CLEAR_IF_FIRST; > > /* honor permissions if user has specified O_CREAT */ > if (open_flags & O_CREAT) { >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 10922
: 10414 |
10437