diff options
author | Kefu Chai <kchai@redhat.com> | 2021-03-12 12:50:45 +0100 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2021-03-12 18:15:07 +0100 |
commit | f42cebe9deb0a8ea22e5765f68c96a92c46231b8 (patch) | |
tree | 10387416e07e88b57059f2c6320009af09a8d2c7 /src/common/ceph_context.h | |
parent | cmake: do not build mutex_debug.cc if !WITH_CEPH_DEBUG_MUTEX (diff) | |
download | ceph-f42cebe9deb0a8ea22e5765f68c96a92c46231b8.tar.xz ceph-f42cebe9deb0a8ea22e5765f68c96a92c46231b8.zip |
common/ceph_context: disable lockdep if !CEPH_DEBUG_MUTEX
make lockdep a feature which can only be enabled at compile time.
we don't need to have lockdep when CEPH_DEBUG_MUTEX is OFF, so
just comment it out in Release builds.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/common/ceph_context.h')
-rw-r--r-- | src/common/ceph_context.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/ceph_context.h b/src/common/ceph_context.h index 27f76900784..25f52615b06 100644 --- a/src/common/ceph_context.h +++ b/src/common/ceph_context.h @@ -352,9 +352,9 @@ private: std::set<std::string> _experimental_features; ceph::PluginRegistry* _plugin_registry; - +#ifdef CEPH_DEBUG_MUTEX md_config_obs_t *_lockdep_obs; - +#endif public: TOPNSPC::crush::CrushLocation crush_location; private: |