diff options
author | Michael Adam <obnox@samba.org> | 2014-02-12 17:41:28 +0100 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2014-03-06 11:31:14 +1100 |
commit | 6fdd25008f384408dfc103b90ab40b8e64ce18b0 (patch) | |
tree | 02a34851bcf844988e409f9949db3bb5356bab8c /ctdb/server/ctdb_vacuum.c | |
parent | 1b2fc1f096f80db5974eab021f12f0ad9af24882 (diff) | |
download | samba-6fdd25008f384408dfc103b90ab40b8e64ce18b0.tar.gz samba-6fdd25008f384408dfc103b90ab40b8e64ce18b0.tar.xz samba-6fdd25008f384408dfc103b90ab40b8e64ce18b0.zip |
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>
Diffstat (limited to 'ctdb/server/ctdb_vacuum.c')
-rw-r--r-- | ctdb/server/ctdb_vacuum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/server/ctdb_vacuum.c b/ctdb/server/ctdb_vacuum.c index 100377ee8ad..137e8d67573 100644 --- a/ctdb/server/ctdb_vacuum.c +++ b/ctdb/server/ctdb_vacuum.c @@ -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; |