diff options
author | Zhang Huan <zhanghuan@open-fs.com> | 2017-12-05 12:45:46 +0800 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-12-06 23:45:23 +0000 |
commit | 28202631fecbc3b20a55cfc5fa339663db37e955 (patch) | |
tree | 28124115916e36068848473a9327360844f7cfb4 /libglusterfs/src/xlator.c | |
parent | c502ca166473f4f0e027f3475924d8dc4e486bd3 (diff) |
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 <zhanghuan@open-fs.com>
Diffstat (limited to 'libglusterfs/src/xlator.c')
-rw-r--r-- | libglusterfs/src/xlator.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |