diff options
author | Kefu Chai <kchai@redhat.com> | 2018-07-06 17:08:00 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2018-07-10 17:42:59 +0200 |
commit | f528475d92524328ef3e12dfec036461395338c0 (patch) | |
tree | fde1820cfa95bbb1227b83157e0a6cb745589d10 /src/tools/cephfs/TableTool.cc | |
parent | common,rbd,rgw,osd: extract config values into ConfigValues (diff) | |
download | ceph-f528475d92524328ef3e12dfec036461395338c0.tar.xz ceph-f528475d92524328ef3e12dfec036461395338c0.zip |
common: move ConfigValues out of md_config_t
by moving ConfigValues out of md_config_t, we are able to point
md_config_t to a new ConfigValues instance at runtime, without
destroying the old one.
also remove ConfigReader, because all md_config_obs_t will be updated
with ConfigProxy now. as md_config_t is not able to offer the *data*
anymore.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/tools/cephfs/TableTool.cc')
-rw-r--r-- | src/tools/cephfs/TableTool.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/cephfs/TableTool.cc b/src/tools/cephfs/TableTool.cc index 60616c38e12..ed768d37ee6 100644 --- a/src/tools/cephfs/TableTool.cc +++ b/src/tools/cephfs/TableTool.cc @@ -227,7 +227,7 @@ public: while(true) { std::map<std::string, bufferlist> values; int r = io->omap_get_vals(object_name, last_key, - g_conf->mds_sessionmap_keys_per_op, &values); + g_conf()->mds_sessionmap_keys_per_op, &values); if (r != 0) { derr << "error reading values: " << cpp_strerror(r) << dendl; |