summaryrefslogtreecommitdiffstats
path: root/src/mon/LogMonitor.cc
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2018-06-26 09:09:28 +0200
committerKefu Chai <kchai@redhat.com>2018-06-27 06:53:37 +0200
commit2df0a50e07947f42d37b3c54d7dbba96f1ccbad9 (patch)
treea6c854ca9e68ab2f9612021486fa6e1ad2ed7fa9 /src/mon/LogMonitor.cc
parentMerge PR #22294 into master (diff)
downloadceph-2df0a50e07947f42d37b3c54d7dbba96f1ccbad9.tar.xz
ceph-2df0a50e07947f42d37b3c54d7dbba96f1ccbad9.zip
common: add LockPolicy to md_config_t
before this change, we guard all read/write access to md_config_t with a lock. after this change, this policy is optional. and is controled by a enum named `LockPolicy`. we will use `md_config_impl<LockPolicy::SINGLE>` to implement the lockless config used by crimson/osd. Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/mon/LogMonitor.cc')
-rw-r--r--src/mon/LogMonitor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/LogMonitor.cc b/src/mon/LogMonitor.cc
index 73856f85807..04809ed5be9 100644
--- a/src/mon/LogMonitor.cc
+++ b/src/mon/LogMonitor.cc
@@ -828,7 +828,7 @@ ceph::logging::Graylog::Ref LogMonitor::log_channel_info::get_graylog(
return graylogs[channel];
}
-void LogMonitor::handle_conf_change(const struct md_config_t *conf,
+void LogMonitor::handle_conf_change(const md_config_t *conf,
const std::set<std::string> &changed)
{
if (changed.count("mon_cluster_log_to_syslog") ||