From 368683d7af747e3d67c48a702ff315a2022c6f85 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sat, 19 Apr 2014 02:53:29 +0200 Subject: ctdb:vacuum: use plain tdb_repack() instead of ctdb_repack_tdb() Since we usually have 0 records left for repack-deletion, repacking is essentially used for the purpose of defragmenting the freelist, we can use the vanilla tdb_repack function. Signed-off-by: Michael Adam Reviewed-by: Amitay Isaacs --- ctdb/server/ctdb_vacuum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/server/ctdb_vacuum.c b/ctdb/server/ctdb_vacuum.c index 18ea53d88ff..ee7bb0b3270 100644 --- a/ctdb/server/ctdb_vacuum.c +++ b/ctdb/server/ctdb_vacuum.c @@ -1483,7 +1483,7 @@ static int ctdb_vacuum_and_repack_db(struct ctdb_db_context *ctdb_db, DEBUG(DEBUG_INFO, ("Repacking %s with %u freelist entries\n", name, freelist_size)); - if (ctdb_repack_tdb(ctdb_db->ltdb->tdb, mem_ctx, vdata) != 0) { + if (tdb_repack(ctdb_db->ltdb->tdb) != 0) { DEBUG(DEBUG_ERR,(__location__ " Failed to repack '%s'\n", name)); talloc_free(vdata); return -1; -- cgit