ctdb-vacuum: Avoid processing any more packets
authorAmitay Isaacs <amitay@gmail.com>
Tue, 1 Oct 2019 05:05:10 +0000 (15:05 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 24 Oct 2019 04:06:43 +0000 (04:06 +0000)
All the vacuum operations if required have an event loop to ensure
completion of pending operations.  Once all the steps are complete,
there is no reason to process any more packets.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/server/ctdb_vacuum.c

index 59fd1a54747f0a6d4e0b27881ba31baba3dd699f..2512811b179e8fe3cb4a09081e55d876f35a2372 100644 (file)
@@ -1257,9 +1257,6 @@ static int ctdb_vacuum_db(struct ctdb_db_context *ctdb_db,
 
        talloc_free(tmp_ctx);
 
-       /* this ensures we run our event queue */
-       ctdb_ctrl_getpnn(ctdb, TIMELIMIT(), CTDB_CURRENT_NODE);
-
        return 0;
 }