1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

fix a bug in pushdb control.

we should only write the pushed record if RSN of the new one if higher 
than the rsn of the existing one    not the other way around

(This used to be ctdb commit f535008c3755cf84acff7bc73ea05c0901e940ef)
This commit is contained in:
Ronnie Sahlberg 2007-05-02 10:25:14 +10:00
parent 51630f9b12
commit 88e3ca3b2e

View File

@ -385,7 +385,7 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb,
ctdb_ltdb_unlock(ctdb_db, key);
return -1;
}
if (header.rsn > hdr->rsn) {
if (header.rsn < hdr->rsn) {
ret = ctdb_ltdb_store(ctdb_db, key, hdr, data);
if (ret != 0) {
DEBUG(0, (__location__ "Unable to store record\n"));