mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
ctdb-vacuum: fix delete list counts in delete_marshall_traverse_first
when bumping skipped, decrement left, so the sum is correct Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Thu Mar 6 03:32:33 CET 2014 on sn-devel-104
This commit is contained in:
parent
5b81848e50
commit
d8e110ed7d
@ -343,6 +343,7 @@ static int delete_marshall_traverse_first(void *param, void *data)
|
||||
"key hash [0x%08x] on database db[%s].\n",
|
||||
hash, ctdb_db->db_name));
|
||||
recs->vdata->count.delete_list.skipped++;
|
||||
recs->vdata->count.delete_list.left--;
|
||||
talloc_free(dd);
|
||||
return 0;
|
||||
}
|
||||
@ -418,6 +419,7 @@ skip:
|
||||
tdb_chainunlock(ctdb_db->ltdb->tdb, dd->key);
|
||||
|
||||
recs->vdata->count.delete_list.skipped++;
|
||||
recs->vdata->count.delete_list.left--;
|
||||
talloc_free(dd);
|
||||
dd = NULL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user