summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-04 14:49:53 +0100
committerMichael Adam <obnox@samba.org>2009-12-05 17:59:35 +0100
commitd92d770d238bf982627ae9e7498650ba77674057 (patch)
treeb4d56a48e72c59b8c73b8b05be36346f0d1ff544 /source3
parent743155f3bee2d3e9d433d003b0193049d3456eed (diff)
downloadsamba-d92d770d238bf982627ae9e7498650ba77674057.tar.gz
samba-d92d770d238bf982627ae9e7498650ba77674057.tar.bz2
samba-d92d770d238bf982627ae9e7498650ba77674057.zip
s3:dbwrap_ctdb: increase the rsn of the __transaction_lock__ when storing
so that it is correctly handled by recoveries. Also set the dmaster explicitly. Michael
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/dbwrap_ctdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c
index 8563990a84..9e57aadb25 100644
--- 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 "