diff options
-rw-r--r-- | ctdb/server/ctdb_vacuum.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_vacuum.c b/ctdb/server/ctdb_vacuum.c index e69452294e8..100377ee8ad 100644 --- a/ctdb/server/ctdb_vacuum.c +++ b/ctdb/server/ctdb_vacuum.c @@ -849,6 +849,7 @@ static int ctdb_process_delete_list(struct ctdb_db_context *ctdb_db, uint32_t *active_nodes; int num_active_nodes; TALLOC_CTX *tmp_ctx; + uint32_t sum; if (vdata->delete_count == 0) { return 0; @@ -1114,6 +1115,19 @@ success: (unsigned)vdata->delete_left)); } + sum = vdata->delete_deleted + + vdata->delete_skipped + + vdata->delete_remote_error + + vdata->delete_local_error + + vdata->delete_left; + + if (vdata->delete_count != sum) { + DEBUG(DEBUG_ERR, (__location__ " Inconsistency in vacuum " + "delete list counts for db[%s]: total[%u] != sum[%u]\n", + ctdb_db->db_name, (unsigned)vdata->delete_count, + (unsigned)sum)); + } + if (vdata->delete_count > 0) { DEBUG(DEBUG_INFO, (__location__ |