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>
Tue, 5 Feb 2013 03:42:19 +0000 (14:42 +1100)
commit35da9a7c2a0f5e54e61588c3c3455f06ebc66822
treebd2fe90405c04c65c8bfb4672ef6be92dfd47c5d
parenta82d3ec12f0fda16d6bfa8442a07595de897c10e
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>
server/ctdb_traverse.c