ctdb-vacuum: change full db traverse vacuuming to fill delete queue
authorMichael Adam <obnox@samba.org>
Fri, 14 Feb 2014 17:38:31 +0000 (18:38 +0100)
committerAmitay Isaacs <amitay@gmail.com>
Thu, 6 Mar 2014 00:31:12 +0000 (11:31 +1100)
commitba49deb2344c0a9a8f76c9fd0136bdeadad6af89
treedddc7f7f7122c505df73394fb35e5c3f06e93658
parentd0b7b3882511769b1bfc1d0d4fdc0dba288e6ccd
ctdb-vacuum: change full db traverse vacuuming to fill delete queue

This lets the "fast vacuum" delete queue traverse do the actual work.

On the positive side, we note that this lets the "full vacuuming"
treat the records that have never been migrated with data correctly.
These had previously been added to the delete list for complicated
cross-node deletion instead of directly deleting them.

On the other hand side, there might be a slight overhead
since the records are read again in the delete queu traverse,
but this is OK because this change is in preparation of
untangling the db traverse altogether from the vacuum run,
making it independent.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_vacuum.c