From 28202631fecbc3b20a55cfc5fa339663db37e955 Mon Sep 17 00:00:00 2001 From: Zhang Huan Date: Tue, 5 Dec 2017 12:45:46 +0800 Subject: libglusterfs: specify ctx in gf_log_set_loglevel specify ctx in gf_log_set_loglevel, instead of getting it from a thread specific variable. Change-Id: I498f826e8e32231235a6b0005026a27c327727fd BUG: 1521213 Signed-off-by: Zhang Huan --- libglusterfs/src/xlator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs/src/xlator.c') diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c index 03495463a53..a342bbd7f33 100644 --- a/libglusterfs/src/xlator.c +++ b/libglusterfs/src/xlator.c @@ -1294,7 +1294,7 @@ is_gf_log_command (xlator_t *this, const char *name, char *value) LG_MSG_SET_LOG_LEVEL, "setting log level to %d (old-value=%d)", log_level, gf_log_get_loglevel()); - gf_log_set_loglevel (log_level); + gf_log_set_loglevel (this->ctx, log_level); ret = 0; goto out; } -- cgit