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

ctdb-vacuum: treat value 0 of tunable VacuumLimit as turning off repacking

I.e. no number of records found to delete will trigger the
repacking.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Michael Adam 2014-02-12 17:41:28 +01:00 committed by Amitay Isaacs
parent 1b2fc1f096
commit 6fdd25008f

View File

@ -1472,7 +1472,7 @@ static int ctdb_vacuum_and_repack_db(struct ctdb_db_context *ctdb_db,
* decide if a repack is necessary
*/
if ((repack_limit == 0 || (uint32_t)freelist_size < repack_limit) &&
vdata->delete_left < vacuum_limit)
(vacuum_limit == 0 || vdata->delete_left < vacuum_limit))
{
talloc_free(vdata);
return 0;