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 --- xlators/features/changelog/lib/src/gf-changelog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/features/changelog/lib/src/gf-changelog.c') 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; } -- cgit