ltdb: add the CTDB_REC_FLAG_AUTOMATIC to the initial header in ctdb_ltdb_fetch()
authorMichael Adam <obnox@samba.org>
Thu, 3 Feb 2011 15:30:52 +0000 (16:30 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 9 Mar 2011 23:56:35 +0000 (00:56 +0100)
Signals that this record was not created by a client level store.

common/ctdb_ltdb.c

index b5e586568cd379fc1735f2e3161f74dfb3ba3a02..3ee7fe83143e406b220ae7374cbbbdab2ad9dfb9 100644 (file)
@@ -65,6 +65,7 @@ static void ltdb_initial_header(struct ctdb_db_context *ctdb_db,
        ZERO_STRUCTP(header);
        /* initial dmaster is the lmaster */
        header->dmaster = ctdb_lmaster(ctdb_db->ctdb, &key);
+       header->flags = CTDB_REC_FLAG_AUTOMATIC;
 }