mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb:vacuum: always run freelist_size again
and not only if repack_limit != 0. This partially reverts
commit 48f2d11588
.
With the new tdb code this defragments the
free list by merging adjacent records.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
026d79cb00
commit
5334881afa
@ -1344,12 +1344,10 @@ static int ctdb_vacuum_and_repack_db(struct ctdb_db_context *ctdb_db,
|
||||
DEBUG(DEBUG_ERR,(__location__ " Failed to vacuum '%s'\n", name));
|
||||
}
|
||||
|
||||
if (repack_limit != 0) {
|
||||
freelist_size = tdb_freelist_size(ctdb_db->ltdb->tdb);
|
||||
if (freelist_size == -1) {
|
||||
DEBUG(DEBUG_ERR,(__location__ " Failed to get freelist size for '%s'\n", name));
|
||||
return -1;
|
||||
}
|
||||
freelist_size = tdb_freelist_size(ctdb_db->ltdb->tdb);
|
||||
if (freelist_size == -1) {
|
||||
DEBUG(DEBUG_ERR,(__location__ " Failed to get freelist size for '%s'\n", name));
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user