vacuum: introduce the RECEIVE_RECORDS control
authorMichael Adam <obnox@samba.org>
Thu, 20 Dec 2012 23:24:47 +0000 (00:24 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 26 Apr 2013 14:51:59 +0000 (16:51 +0200)
commit64d75afca94d0a59a8d112f2e8d7130c23e5487c
treed895354f52dd2184bb2468f2027ec7754b446e19
parent0adfa7454fcd1bd17108ef4ec43454f5466a2f19
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>
(cherry picked from commit e397702e271af38204fd99733bbeba7c1db3a999)

Conflicts:

include/ctdb_protocol.h
server/ctdb_control.c
include/ctdb_private.h
server/ctdb_control.c
server/ctdb_recover.c