1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

ctdb-recoverd: Replace unnecessary use of ctdb->recovery_master

Databases are only pulled by the recovery master, so it can compare
with current node PNN.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2015-03-31 14:03:43 +11:00 committed by Amitay Isaacs
parent 6415edfa26
commit 4b4ba77f4a

View File

@ -776,7 +776,8 @@ static int pull_one_remote_database(struct ctdb_context *ctdb, uint32_t srcnode,
header = *(struct ctdb_ltdb_header *)existing.dptr;
free(existing.dptr);
if (!(header.rsn < hdr->rsn ||
(header.dmaster != ctdb->recovery_master && header.rsn == hdr->rsn))) {
(header.dmaster != ctdb_get_pnn(ctdb) &&
header.rsn == hdr->rsn))) {
continue;
}
}