recoverd: in a recovery, set the MIGRATED_WITH_DATA flag on all records
authorMichael Adam <obnox@samba.org>
Fri, 3 Dec 2010 14:24:06 +0000 (15:24 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 9 Mar 2011 22:43:53 +0000 (23:43 +0100)
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>

server/ctdb_recoverd.c

index 13dafa7ea6946f32c6fa2ecb3f7d8e69b5fd7b38..cbead3faed10c104a82bb045f56385887b42d05c 100644 (file)
@@ -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 */