summaryrefslogtreecommitdiffstats
path: root/src/test/daemon_config.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/test/daemon_config.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/test/daemon_config.cc')
-rw-r--r--src/test/daemon_config.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/daemon_config.cc b/src/test/daemon_config.cc
index df59c32b162..bb02ef0e768 100644
--- a/src/test/daemon_config.cc
+++ b/src/test/daemon_config.cc
@@ -14,6 +14,7 @@
#include "gtest/gtest.h"
#include "common/ceph_argparse.h"
+#include "common/ceph_context.h"
#include "common/config.h"
#include "global/global_context.h"
#include "include/cephfs/libcephfs.h"