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)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 17 Apr 2013 11:16:32 +0000 (21:16 +1000)
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>
server/ctdb_call.c

index 67219c4ab3795b6e23a60e0b4281e22a8f956524..a6c6389ab1c6e0be1b45c3b4031f5adec15993cb 100644 (file)
@@ -343,7 +343,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;