From: Andrew Tridgell Date: Wed, 18 Apr 2007 09:12:29 +0000 (+1000) Subject: this fixes a timeout error spotted by volker X-Git-Tag: tevent-0.9.20~348^2~2877 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=31e23316081f0b5765de5b05fc8d17481bf33c29;p=thirdparty%2Fsamba.git this fixes a timeout error spotted by volker It ensures that when the client context goes away (such as when the client exits) that any timed events and partially completed requests from that client also go away (This used to be ctdb commit 45a45a0a44d4da9b45719aac72b0ae4bd4c74462) --- diff --git a/ctdb/common/ctdb_daemon.c b/ctdb/common/ctdb_daemon.c index d784b059b85..4d69870a83c 100644 --- a/ctdb/common/ctdb_daemon.c +++ b/ctdb/common/ctdb_daemon.c @@ -151,6 +151,7 @@ static struct ctdb_call_state *ctdb_daemon_fetch_lock_send(struct ctdb_db_contex state = ctdb_daemon_call_send_remote(ctdb_db, call, header); state->fetch_private = rec; talloc_steal(state, rec); + talloc_steal(mem_ctx, state); return state; }