add a new record flag CTDB_REC_FLAG_VACUUM_MIGRATED.
authorMichael Adam <obnox@samba.org>
Fri, 10 Dec 2010 12:57:01 +0000 (13:57 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 9 Mar 2011 22:54:36 +0000 (23:54 +0100)
This is to be used internally. The purpose is to flag a record
as been migrated by a VACUUM_MIGRATION, which is triggered by
a VACUUM_FETCH message as part of the vacuuming. The local store
routine will base its decision whether to delete or to store
the record (among other things) upon the value of this flag.

This flag should never be stored in the local database copies.

include/ctdb_protocol.h

index 05ad639c28f8c31e6f5240a91de490d26d2d9d7b..449e7794d897cde48a40a4f46c9bfa7bc67442d3 100644 (file)
@@ -483,6 +483,7 @@ struct ctdb_ltdb_header {
        uint32_t reserved1;
 #define CTDB_REC_FLAG_DEFAULT                  0x00000000
 #define CTDB_REC_FLAG_MIGRATED_WITH_DATA       0x00010000
+#define CTDB_REC_FLAG_VACUUM_MIGRATED          0x00020000
        uint32_t flags;
 };