mirror of
https://github.com/ceph/ceph
synced 2025-01-04 02:02:36 +00:00
common/config: change md_config_obs_impl's template param to ConfigProxy
we were using LockPolicy as this tempalte class's template parameter, but turns out ConfigProxy is a better parameter for it. as ConfigProxy is "closer" to md_config_obs_impl than LockPolicy is. Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
7909c08fe0
commit
8435aa9bda
@ -5,10 +5,10 @@
|
||||
#include "lock_policy.h"
|
||||
|
||||
namespace ceph::internal {
|
||||
template<LockPolicy lp> class md_config_obs_impl;
|
||||
template<class ConfigProxy> class md_config_obs_impl;
|
||||
}
|
||||
|
||||
class md_config_t;
|
||||
using md_config_obs_t =
|
||||
ceph::internal::md_config_obs_impl<ceph::internal::LockPolicy::MUTEX>;
|
||||
struct md_config_t;
|
||||
class ConfigProxy;
|
||||
using md_config_obs_t =
|
||||
ceph::internal::md_config_obs_impl<ConfigProxy>;
|
||||
|
@ -28,7 +28,7 @@ namespace ceph::internal {
|
||||
* Subscribe for configuration changes by calling the md_config_t::add_observer() method
|
||||
* and unsubscribe using md_config_t::remove_observer().
|
||||
*/
|
||||
template<LockPolicy lp>
|
||||
template<class ConfigProxy>
|
||||
class md_config_obs_impl {
|
||||
public:
|
||||
virtual ~md_config_obs_impl() {}
|
||||
|
Loading…
Reference in New Issue
Block a user