]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: do not use g_conf().get_val<>() in libcephfs 38033/head
authorXiubo Li <xiubli@redhat.com>
Thu, 12 Nov 2020 01:13:45 +0000 (09:13 +0800)
committerXiubo Li <xiubli@redhat.com>
Fri, 20 Nov 2020 09:55:51 +0000 (17:55 +0800)
commita467274f1c4dcf357de48fb736d40f7488bc4d7c
tree3d8c421522b32c08702891a42f6429d9e2e24083
parent07cba31a03a3a311940a5338944f11ad2c87b641
client: do not use g_conf().get_val<>() in libcephfs

The g_conf() will try to dereference the "g_ceph_context" to get
the "_conf", but the "g_ceph_context" won't be set in none fuse
use case in libcephfs, so it will crash in when doing
g_conf().get_val<>.

Switch to use cct->_conf.get_val<> instead.

Fixes: https://tracker.ceph.com/issues/48206
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/client/Client.cc
src/client/fuse_ll.cc