mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
we must bump the rsn everytime we do a REQ_DMASTER or a REPLY_DMASTER
to make sure that the "merge records based on rsn during recovery" will merge correctly. this is extra important since samba3 never bumps the record when it writes new data to it ! (This used to be ctdb commit 857e67204065603592c2dbbadbd8667ebba9ccdb)
This commit is contained in:
parent
325713dfeb
commit
9eeb4f1a51
@ -221,7 +221,7 @@ static void ctdb_send_dmaster_reply(struct ctdb_db_context *ctdb_db,
|
||||
|
||||
r->hdr.destnode = new_dmaster;
|
||||
r->hdr.reqid = reqid;
|
||||
r->rsn = header->rsn;
|
||||
r->rsn = header->rsn + 1;
|
||||
r->keylen = key.dsize;
|
||||
r->datalen = data.dsize;
|
||||
r->db_id = ctdb_db->db_id;
|
||||
@ -263,7 +263,7 @@ static void ctdb_call_send_dmaster(struct ctdb_db_context *ctdb_db,
|
||||
r->hdr.destnode = lmaster;
|
||||
r->hdr.reqid = c->hdr.reqid;
|
||||
r->db_id = c->db_id;
|
||||
r->rsn = header->rsn;
|
||||
r->rsn = header->rsn + 1;
|
||||
r->dmaster = c->hdr.srcnode;
|
||||
r->keylen = key->dsize;
|
||||
r->datalen = data->dsize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user