diff options
| author | Michael Adam <obnox@samba.org> | 2013-04-19 16:09:34 +0200 |
|---|---|---|
| committer | Amitay Isaacs <amitay@gmail.com> | 2013-04-24 18:48:53 +1000 |
| commit | 32b34222b07e2bede51c78a31767c8a66ce4dfbb (patch) | |
| tree | bbe08d558a82bdb6e79716d81456b0db95520c88 /ctdb | |
| parent | ce0916f61b0ad68d9838e64f89d606853e2efc26 (diff) | |
vacuum: use CTDB_REC_RO_FLAGS in the vacuuming code
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-By: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit a62775334aa20d1d850d2df705eb70303b04ac5c)
Diffstat (limited to 'ctdb')
| -rw-r--r-- | ctdb/server/ctdb_vacuum.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/ctdb/server/ctdb_vacuum.c b/ctdb/server/ctdb_vacuum.c index 8343da8d99..d7527d4da1 100644 --- a/ctdb/server/ctdb_vacuum.c +++ b/ctdb/server/ctdb_vacuum.c @@ -360,11 +360,7 @@ static int delete_marshall_traverse_first(void *param, void *data) header = (struct ctdb_ltdb_header *)tdb_data.dptr; - if (header->flags & (CTDB_REC_RO_HAVE_DELEGATIONS| - CTDB_REC_RO_HAVE_READONLY| - CTDB_REC_RO_REVOKING_READONLY| - CTDB_REC_RO_REVOKE_COMPLETE)) - { + if (header->flags & CTDB_REC_RO_FLAGS) { DEBUG(DEBUG_INFO, (__location__ ": record with hash [0x%08x] " "on database db[%s] has read-only flags. " "skipping.\n", @@ -637,11 +633,7 @@ static int delete_record_traverse(void *param, void *data) header = (struct ctdb_ltdb_header *)tdb_data.dptr; - if (header->flags & (CTDB_REC_RO_HAVE_DELEGATIONS| - CTDB_REC_RO_HAVE_READONLY| - CTDB_REC_RO_REVOKING_READONLY| - CTDB_REC_RO_REVOKE_COMPLETE)) - { + if (header->flags & CTDB_REC_RO_FLAGS) { DEBUG(DEBUG_INFO, (__location__ ": record with hash [0x%08x] " "on database db[%s] has read-only flags. " "skipping.\n", |
