summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2018-10-19 17:27:15 +1100
committerAmitay Isaacs <amitay@samba.org>2018-11-06 07:16:15 +0100
commit44019b55779f3e36a10c8dbbf89991177ac6a15d (patch)
treeb967cb876f47f2bc6c89a4654d28a5b2a76528f9 /ctdb
parente952f0316b34b89a754b6805dad5c33adea7e157 (diff)
downloadsamba-44019b55779f3e36a10c8dbbf89991177ac6a15d.tar.gz
ctdb-event: Only run talloc report if CTDB_INTERACTIVE is set
This is only really wanted for interactive testing when logging to stderr. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/event/event_daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/event/event_daemon.c b/ctdb/event/event_daemon.c
index 96b41a874e8..3f9827c6a06 100644
--- a/ctdb/event/event_daemon.c
+++ b/ctdb/event/event_daemon.c
@@ -361,7 +361,7 @@ int main(int argc, const char **argv)
ret = 0;
}
- if (getenv("CTDB_TEST_MODE") != NULL) {
+ if (t != NULL) {
talloc_report_full(e_state->mem_ctx, stderr);
}