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)
commit527976d02aa004be96dff50cebdaf08eff82e936
tree5bc4daa98f863668e40aeedfca5d7d78d1c74092
parentf49d57c21d8e44f81eadc824d48a67d634d56415
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>
(This used to be ctdb commit e397702e271af38204fd99733bbeba7c1db3a999)
ctdb/include/ctdb_private.h
ctdb/include/ctdb_protocol.h
ctdb/server/ctdb_control.c
ctdb/server/ctdb_recover.c