summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-04-19 02:47:21 +0200
committerMichael Adam <obnox@samba.org>2014-06-17 09:33:10 +0200
commitec2f1abe486c77f8a27ebc731917337efc9cd04f (patch)
treeb5731dbbc29ee859beacf0c18ed8ab1d4cd0a8ca
parent67e5746b236cca860d02f741411b567a37a9cf4e (diff)
downloadsamba-ec2f1abe486c77f8a27ebc731917337efc9cd04f.zip
samba-ec2f1abe486c77f8a27ebc731917337efc9cd04f.tar.gz
samba-ec2f1abe486c77f8a27ebc731917337efc9cd04f.tar.xz
ctdb:vacuum: remove a comment in ctdb_vacuum_and_repack_db()
The repack operation now mainly defragments the freelist and does not usually delete any records any more. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
-rw-r--r--ctdb/server/ctdb_vacuum.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ctdb/server/ctdb_vacuum.c b/ctdb/server/ctdb_vacuum.c
index fdca2a3..18ea53d 100644
--- a/ctdb/server/ctdb_vacuum.c
+++ b/ctdb/server/ctdb_vacuum.c
@@ -1483,9 +1483,6 @@ 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));
- /*
- * repack and implicitely get rid of the records we can delete
- */
if (ctdb_repack_tdb(ctdb_db->ltdb->tdb, mem_ctx, vdata) != 0) {
DEBUG(DEBUG_ERR,(__location__ " Failed to repack '%s'\n", name));
talloc_free(vdata);