ReadOnly: Make sure we dont try to fast-vacuum records that are set for readonly...
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 20 Feb 2012 10:13:46 +0000 (21:13 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 20 Feb 2012 10:13:46 +0000 (21:13 +1100)
(This used to be ctdb commit 303134cf10a08ce61954d5de9025d9bbcb5f75ef)

ctdb/server/ctdb_ltdb_server.c

index e5437b99a26a60a316a8af9919390261e6056627..e699c2ad80f85d678b7f0a81eb1476de5355d1bc 100644 (file)
@@ -83,6 +83,8 @@ static int ctdb_ltdb_store_server(struct ctdb_db_context *ctdb_db,
         */
        if (data.dsize != 0) {
                keep = true;
+       } else if (header->flags & (CTDB_REC_RO_HAVE_DELEGATIONS|CTDB_REC_RO_HAVE_READONLY)) {
+               keep = true;
        } else if (ctdb_db->persistent) {
                keep = true;
        } else if (header->flags & CTDB_REC_FLAG_AUTOMATIC) {