ctdb_private.h: add record flag CTDB_REC_FLAG_AUTOMATIC
authorMichael Adam <obnox@samba.org>
Thu, 3 Feb 2011 15:27:42 +0000 (16:27 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 9 Mar 2011 23:56:35 +0000 (00:56 +0100)
This is a flag that shall signa that a record has been automatically generated by ctdb
and not by an explicit client store operation. This will be used in the ctdb_ltdb_fetch
operation which stores an empty record with default initial header before trying to
migrate the record from the dmaster when the record does not exist in the local tdb.

include/ctdb_protocol.h

index 887c73ed6b1122e0a3377511bf7157b16d4d843a..0422afeb7b73306ef93bf61d145bd86ee30ff822 100644 (file)
@@ -485,6 +485,7 @@ struct ctdb_ltdb_header {
 #define CTDB_REC_FLAG_DEFAULT                  0x00000000
 #define CTDB_REC_FLAG_MIGRATED_WITH_DATA       0x00010000
 #define CTDB_REC_FLAG_VACUUM_MIGRATED          0x00020000
+#define CTDB_REC_FLAG_AUTOMATIC                        0x00040000
        uint32_t flags;
 };