summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-12-20 10:55:53 +0100
committerMichael Adam <obnox@samba.org>2011-03-14 13:35:46 +0100
commitee593284d5e489cfa6e7405012b6d4824163c8b1 (patch)
treef937a235e0582572937be1f628e045ff6099cf25
parenta81f740f3dda9cff343640c5a726db5a0dc5fcd5 (diff)
downloadsamba-ee593284d5e489cfa6e7405012b6d4824163c8b1.tar.gz
samba-ee593284d5e489cfa6e7405012b6d4824163c8b1.tar.xz
samba-ee593284d5e489cfa6e7405012b6d4824163c8b1.zip
server: rename ctdb_repack_db() to ctdb_vacuum_and_repack_db()
(This used to be ctdb commit 6c603f85726d2efac9710af7c4875ded2ca7230e)
-rw-r--r--ctdb/server/ctdb_vacuum.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ctdb/server/ctdb_vacuum.c b/ctdb/server/ctdb_vacuum.c
index 3639547738..cbc2acbd04 100644
--- a/ctdb/server/ctdb_vacuum.c
+++ b/ctdb/server/ctdb_vacuum.c
@@ -644,7 +644,8 @@ static int update_tuning_db(struct ctdb_db_context *ctdb_db, struct vacuum_data
* repack and vaccum a db
* called from the child context
*/
-static int ctdb_repack_db(struct ctdb_db_context *ctdb_db, TALLOC_CTX *mem_ctx)
+static int ctdb_vacuum_and_repack_db(struct ctdb_db_context *ctdb_db,
+ TALLOC_CTX *mem_ctx)
{
uint32_t repack_limit = ctdb_db->ctdb->tunable.repack_limit;
uint32_t vacuum_limit = ctdb_db->ctdb->tunable.vacuum_limit;
@@ -893,7 +894,7 @@ ctdb_vacuum_event(struct event_context *ev, struct timed_event *te,
/*
* repack the db
*/
- cc = ctdb_repack_db(ctdb_db, child_ctx);
+ cc = ctdb_vacuum_and_repack_db(ctdb_db, child_ctx);
write(child_ctx->fd[1], &cc, 1);
_exit(0);