traverse: fix traversing with empty records by adding a new (internal) control CTDB_C...
authorMichael Adam <obnox@samba.org>
Sat, 3 Dec 2011 01:15:30 +0000 (02:15 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 12 Jan 2012 07:50:30 +0000 (08:50 +0100)
commit451843e4251c2c8a4393fd2b3dbd83a5b8036f5b
tree2ade5b8d343a972b7874c1b658907a24984dc74e
parentc9231900a7a356b77741fbc45af39702e524ecd6
traverse: fix traversing with empty records by adding a new (internal) control CTDB_CONTROL_TRAVERSE_START_EXT

By this, the original CTDB_CONTROL_TRAVERSE_START control that is
used by e.g. samba's smbstatus, is not changed, so that samba
continues working without code change.

The  CTDB_CONTROL_TRAVERSE_START currently just adds the "withemptyrecords"
flag to the state and processon on as CTDB_CONTROL_TRAVERSE_START_EXT.
(cherry picked from 8281bb210858ed04992eacea7f6d02261e0fc1b1)
client/ctdb_client.c
include/ctdb_private.h
server/ctdb_control.c
server/ctdb_traverse.c