1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-vacuum: fix possible cause for delelete_list processing counts left records > 0

We need to have left records == 0 at the end of the delete list processing.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Michael Adam 2014-02-20 00:58:17 +01:00 committed by Amitay Isaacs
parent 551e9d791c
commit 5b81848e50

View File

@ -976,6 +976,14 @@ static void ctdb_process_delete_list(struct ctdb_db_context *ctdb_db,
talloc_free(dd);
vdata->count.delete_list.remote_error++;
vdata->count.delete_list.left--;
} else {
DEBUG(DEBUG_ERR, (__location__ " Failed to "
"find record with hash 0x%08x coming "
"back from RECEIVE_RECORDS "
"control in delete list.\n",
ctdb_hash(&reckey)));
vdata->count.delete_list.local_error++;
vdata->count.delete_list.left--;
}
rec = (struct ctdb_rec_data *)(rec->length + (uint8_t *)rec);
@ -1075,6 +1083,14 @@ static void ctdb_process_delete_list(struct ctdb_db_context *ctdb_db,
talloc_free(dd);
vdata->count.delete_list.remote_error++;
vdata->count.delete_list.left--;
} else {
DEBUG(DEBUG_ERR, (__location__ " Failed to "
"find record with hash 0x%08x coming "
"back from TRY_DELETE_RECORDS "
"control in delete list.\n",
ctdb_hash(&reckey)));
vdata->count.delete_list.local_error++;
vdata->count.delete_list.left--;
}
rec = (struct ctdb_rec_data *)(rec->length + (uint8_t *)rec);