From d92d770d238bf982627ae9e7498650ba77674057 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 4 Dec 2009 14:49:53 +0100 Subject: 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 --- source3/lib/dbwrap_ctdb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/lib') 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 " -- cgit