vacuum: introduce the RECEIVE_RECORDS control
authorMichael Adam <obnox@samba.org>
Thu, 20 Dec 2012 23:24:47 +0000 (00:24 +0100)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 24 Apr 2013 08:47:32 +0000 (18:47 +1000)
commite397702e271af38204fd99733bbeba7c1db3a999
tree13ed9286835a80f0b40dac9ca38045b1ca21e2ed
parente3740899c1af6962f93c85ad7d1cb71bddce45c6
vacuum: introduce the RECEIVE_RECORDS control

This in preparation of turning the vacuming on the lmaster into
into a two phase process:

- First the node sends the list of records to be vacuumed
  to all other nodes with this new RECEIVE_RECORDS control.
  The remote nodes should store the lmaster's empty current copy.
- Only those records that could be stored on all other nodes
  are processed further. They are send to all other nodes with
  the TRY_DELETE_RECORDS control as before for deletion.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-By: Amitay Isaacs <amitay@gmail.com>
include/ctdb_private.h
include/ctdb_protocol.h
server/ctdb_control.c
server/ctdb_recover.c