Throttler<I> *image_sync_throttler, Throttler<I> *image_deletion_throttler,
ServiceDaemon<I> *service_daemon,
journal::CacheManagerHandler *cache_manager_handler) :
+ m_namespace_name(name),
m_local_mirror_uuid(local_mirror_uuid),
m_remote_mirror_uuid(remote_mirror_uuid),
m_local_site_name(local_site_name),
ceph_assert(ceph_mutex_is_locked(m_lock));
ceph_assert(!m_remote_status_updater);
+ std::string local_site_name;
+ if (m_namespace_name.empty()) {
+ local_site_name = m_local_site_name;
+ }
+
librados::Rados rados(m_local_io_ctx);
std::string local_fsid;
int r = rados.cluster_fsid(&local_fsid);
}
m_remote_status_updater.reset(MirrorStatusUpdater<I>::create(
- m_remote_io_ctx, m_threads, m_local_site_name, local_fsid));
+ m_remote_io_ctx, m_threads, local_site_name, local_fsid));
auto ctx = create_context_callback<
NamespaceReplayer<I>,
&NamespaceReplayer<I>::handle_init_remote_status_updater>(this);
const std::string &instance_id,
Context* on_finish);
+ std::string m_namespace_name;
librados::IoCtx m_local_io_ctx;
librados::IoCtx m_remote_io_ctx;
std::string m_local_mirror_uuid;