dbwrap_parse_record() can return ctdb tombstone records from the lctdb,
ignore them.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12005
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
struct share_mode_lock *lck = talloc_get_type_abort(
private_data, struct share_mode_lock);
+ if (data.dsize == 0) {
+ /* Likely a ctdb tombstone record, ignore it */
+ lck->data = NULL;
+ return;
+ }
+
lck->data = parse_share_modes(lck, key, data);
}