ctdb_call: don't bump the rsn in ctdb_become_dmaster() any more
authorMichael Adam <obnox@samba.org>
Wed, 3 Apr 2013 10:02:59 +0000 (12:02 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 26 Apr 2013 14:00:53 +0000 (16:00 +0200)
This is now done in ctdb_ltdb_store_server(), so this
extra bump can be spared.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-By: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit cad3107b12e8392f786f9a758ee38cf3a3d58538)

server/ctdb_call.c

index eb8d93ce0bdc81ceaf7a688c245ed150055bd807..48127767b2475caa3f3309fd9d198e605865f684 100644 (file)
@@ -277,7 +277,7 @@ static void ctdb_become_dmaster(struct ctdb_db_context *ctdb_db,
        DEBUG(DEBUG_DEBUG,("pnn %u dmaster response %08x\n", ctdb->pnn, ctdb_hash(&key)));
 
        ZERO_STRUCT(header);
-       header.rsn = rsn + 1;
+       header.rsn = rsn;
        header.dmaster = ctdb->pnn;
        header.flags = record_flags;