summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-04-19 02:53:29 +0200
committerMichael Adam <obnox@samba.org>2014-06-17 09:33:10 +0200
commit368683d7af747e3d67c48a702ff315a2022c6f85 (patch)
tree8fce0241f099e6b78f357df49bac39f1042b0627
parentec2f1abe486c77f8a27ebc731917337efc9cd04f (diff)
downloadsamba-368683d7af747e3d67c48a702ff315a2022c6f85.tar.gz
samba-368683d7af747e3d67c48a702ff315a2022c6f85.tar.xz
samba-368683d7af747e3d67c48a702ff315a2022c6f85.zip
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 <obnox@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
-rw-r--r--ctdb/server/ctdb_vacuum.c2
1 files changed, 1 insertions, 1 deletions
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;