summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/lib
diff options
context:
space:
mode:
authorZhang Huan <zhanghuan@open-fs.com>2017-12-05 12:45:46 +0800
committerJeff Darcy <jeff@pl.atyp.us>2017-12-06 23:45:23 +0000
commit28202631fecbc3b20a55cfc5fa339663db37e955 (patch)
tree28124115916e36068848473a9327360844f7cfb4 /xlators/features/changelog/lib
parentc502ca166473f4f0e027f3475924d8dc4e486bd3 (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 'xlators/features/changelog/lib')
-rw-r--r--xlators/features/changelog/lib/src/gf-changelog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/changelog/lib/src/gf-changelog.c b/xlators/features/changelog/lib/src/gf-changelog.c
index 6ee87b1414e..6ad6c63740d 100644
--- a/xlators/features/changelog/lib/src/gf-changelog.c
+++ b/xlators/features/changelog/lib/src/gf-changelog.c
@@ -431,7 +431,7 @@ gf_changelog_setup_logging (xlator_t *this, char *logfile, int loglevel)
if (gf_log_init (this->ctx, logfile, NULL))
return -1;
- gf_log_set_loglevel ((loglevel == -1) ? GF_LOG_INFO :
+ gf_log_set_loglevel (this->ctx, (loglevel == -1) ? GF_LOG_INFO :
loglevel);
return 0;
}