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>
Thu, 18 Apr 2013 04:05:40 +0000 (14:05 +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>
(cherry picked from commit cad3107b12e8392f786f9a758ee38cf3a3d58538)

server/ctdb_call.c

index dd185585523fa8522529213c3c0983ec83d97091..1a2c6403d741b2c83a4ba8ede5530d0369d87565 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;