Skip to content

Commit

Permalink
ctdb-vacuum: Avoid processing any more packets
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Martin Schwenke <[email protected]>
  • Loading branch information
amitay authored and Amitay Isaacs committed Oct 24, 2019
1 parent 680df07 commit d0cc9ed
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ctdb/server/ctdb_vacuum.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d0cc9ed

Please sign in to comment.