daemon: Make sure all the traverse children are terminated if traverse times out
authorAmitay Isaacs <amitay@gmail.com>
Tue, 22 Jan 2013 02:27:20 +0000 (13:27 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Thu, 7 Feb 2013 02:48:37 +0000 (13:48 +1100)
commit537bed11c339a10faf45a6ede778f7c8e26e4f91
treec6a719c1ac94d18e28069c6630ddb2f623216956
parent584e8c25971219614f3f2bfd5be233b04de7e0af
daemon: Make sure all the traverse children are terminated if traverse times out

When traverse times out, callback function is called with key and data set to
tdb_null.  This is also the way to signal end of traverse.  So if the traverse
times out, callback function treats it as traverse ended and frees state without
calling the destructor.

Keep track if the traverse timed out, so callback function can take appropriate
action for traverse timeout and traverse end.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Cherry-pick-from: 35da9a7c2a0f5e54e61588c3c3455f06ebc66822
server/ctdb_traverse.c