summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-12-03 15:24:06 +0100
committerMichael Adam <obnox@samba.org>2011-03-14 13:35:43 +0100
commit89f27f9424d93eae6313f2f2db7df85e753a534e (patch)
treeeba63c1a236c5b280eb90e5cba8c8a2a0b5ef7bc
parent64fc05e5620e1e19ec6246a40259315d535c3eb6 (diff)
downloadsamba-89f27f9424d93eae6313f2f2db7df85e753a534e.tar.gz
samba-89f27f9424d93eae6313f2f2db7df85e753a534e.tar.xz
samba-89f27f9424d93eae6313f2f2db7df85e753a534e.zip
recoverd: in a recovery, set the MIGRATED_WITH_DATA flag on all records
Those records that are kept after recovery, are non-empty, and stored identically on all nodes. So this is as if they had been migrated with data. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 101be642e492a3a54231e2e3e6553a59380fe702)
-rw-r--r--ctdb/server/ctdb_recoverd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_recoverd.c b/ctdb/server/ctdb_recoverd.c
index cc0be36069..f411dad602 100644
--- a/ctdb/server/ctdb_recoverd.c
+++ b/ctdb/server/ctdb_recoverd.c
@@ -1066,6 +1066,7 @@ static int traverse_recdb(struct tdb_context *tdb, TDB_DATA key, TDB_DATA data,
hdr = (struct ctdb_ltdb_header *)data.dptr;
if (!params->persistent) {
hdr->dmaster = params->ctdb->pnn;
+ hdr->flags |= CTDB_REC_FLAG_MIGRATED_WITH_DATA;
}
/* add the record to the blob ready to send to the nodes */