libctdb: check ctdb_request_free & ctdb_cancel used appropriately.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 18 Jun 2010 05:45:11 +0000 (15:15 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 18 Jun 2010 05:45:11 +0000 (15:15 +0930)
commit70f6ed2634fb10749cdad3deffa96a1aa439c235
tree0ddde84d568b1947f0cac099d643263ea854e2aa
parentcd6b2f46075bfb64561496960af7fc2e95500e52
libctdb: check ctdb_request_free & ctdb_cancel used appropriately.

Since I made this mistake myself, we should check for it.

We could have one function that does both, but from a user's point of
view they are very different and it's quite possibly a bug if they
think the request is finished/unfinished when it's not.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
libctdb/ctdb.c