template <>
class Config<MockTestImageCtx> {
public:
- static int list(librados::IoCtx& io_ctx,
- std::vector<config_option_t> *options) {
- return 0;
+ static void apply_pool_overrides(librados::IoCtx& io_ctx,
+ ConfigProxy* config_proxy) {
}
};
-// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+
// vim: ts=8 sw=2 smarttab
#include "PoolReplayer.h"
return;
}
- std::vector<librbd::config_option_t> options;
- r = librbd::api::Config<I>::list(m_local_io_ctx, &options);
- if (r < 0) {
- derr << "error listing local pool config overrides: " << cpp_strerror(r)
- << dendl;
- return;
- }
auto cct = reinterpret_cast<CephContext *>(m_local_io_ctx.cct());
- for (auto &option : options) {
- if (option.source == RBD_CONFIG_SOURCE_POOL) {
- r = cct->_conf.set_val(option.name.c_str(), option.value);
- assert(r == 0);
- }
- }
+ librbd::api::Config<I>::apply_pool_overrides(m_local_io_ctx, &cct->_conf);
std::string local_mirror_uuid;
r = librbd::cls_client::mirror_uuid_get(&m_local_io_ctx,
: m_threads(threads), m_remote_io_ctx(remote_io_ctx),
m_global_image_id(global_image_id),
m_local_mirror_uuid(local_mirror_uuid), m_local_image_id(local_image_id),
+ m_journal_settings(journal_settings),
m_remote_mirror_uuid(remote_mirror_uuid),
m_remote_image_id(remote_image_id),
m_remote_journaler(remote_journaler), m_client_state(client_state),