git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72c15dd
)
s3:dbwrap_ctdb: increase the rsn of the __transaction_lock__ when storing
author
Michael Adam
<obnox@samba.org>
Fri, 4 Dec 2009 13:49:53 +0000
(14:49 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Tue, 8 Dec 2009 08:15:29 +0000
(09:15 +0100)
so that it is correctly handled by recoveries.
Also set the dmaster explicitly.
Michael
(cherry picked from commit
8e4f774bff9926567006cdc263fa76fd8b703b63
)
source3/lib/dbwrap_ctdb.c
patch
|
blob
|
history
diff --git
a/source3/lib/dbwrap_ctdb.c
b/source3/lib/dbwrap_ctdb.c
index 8563990a84fa15979c6422e1b35b8ea00b5d5368..9e57aadb258372b8f3f97848593b3bc76c8cb2bf 100644
(file)
--- a/
source3/lib/dbwrap_ctdb.c
+++ b/
source3/lib/dbwrap_ctdb.c
@@
-381,6
+381,8
@@
again:
pid = getpid();
data.dptr = (unsigned char *)&pid;
data.dsize = sizeof(pid_t);
+ crec->header.rsn++;
+ crec->header.dmaster = get_my_vnn();
status = db_ctdb_ltdb_store(ctx, key, &(crec->header), data);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, (__location__ " Failed to store pid in transaction "