From 0f22ab943d5990c9f2f36272815ab4e4e87dea93 Mon Sep 17 00:00:00 2001 From: Dmitry Simonenko <pmwkaa@gmail.com> Date: Tue, 29 Nov 2011 18:49:29 +0400 Subject: [PATCH] admin console: show info command show's config fullpath --- mod/box/box.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mod/box/box.m b/mod/box/box.m index 660daf2ae0..ce327759eb 100644 --- a/mod/box/box.m +++ b/mod/box/box.m @@ -48,6 +48,9 @@ #include "memcached.h" #include "box_lua.h" +extern const char *cfg_filename; +extern char *cfg_filename_fullpath; + static void box_process_ro(u32 op, struct tbuf *request_data); static void box_process_rw(u32 op, struct tbuf *request_data); @@ -1478,4 +1481,8 @@ mod_info(struct tbuf *out) tbuf_printf(out, " recovery_last_update: %.3f" CRLF, recovery_state->recovery_last_update_tstamp); tbuf_printf(out, " status: %s" CRLF, status); + const char *path = cfg_filename_fullpath; + if (cfg_filename_fullpath == NULL) + path = cfg_filename; + tbuf_printf(out, " config: \"%s\"" CRLF, path); } -- GitLab