ctdb_ltdb_store_server: delete an empty record that is safe to delete instead of...
authorMichael Adam <obnox@samba.org>
Fri, 3 Dec 2010 14:29:21 +0000 (15:29 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Apr 2011 15:34:28 +0000 (17:34 +0200)
commit982031c0702e35395ad30fdf13607b64b1495f1f
tree4ff378ba18df9d7c9b2df07fa87d78fedd6647e1
parent7b6b9b3b5a6d88297bc964385b8ec8e3bd456b3a
ctdb_ltdb_store_server: delete an empty record that is safe to delete instead of storing locally.

When storing a record that is being migrated off to another node
and has never been migrated with data, then we can safely delete it
from the local tdb instead of storing the record with empty data.

Note: This record is not deleted if we are its lmaster or dmaster.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 3cca0d4b48325d86de2cb0b44bb7811a30701352)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
server/ctdb_ltdb_server.c