summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/status.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c
index 1f45021bcd..d6e408e52e 100644
--- a/source3/utils/status.c
+++ b/source3/utils/status.c
@@ -323,6 +323,13 @@ static int traverse_sessionid(struct db_record *db, void *state)
return (-1);
}
+ /*
+ * This implicitly initializes the global ctdbd connection, usable by
+ * the db_open() calls further down.
+ */
+
+ messaging_init(NULL, procid_self(), event_context_init(NULL));
+
switch (profile_only) {
case 'P':
/* Dump profile data */