ASSERT_EQ(0, get_last_mirror_snapshot(m_remote_ioctx, m_remote_image_id,
&remote_snap_id, &remote_mirror_ns));
+ std::cout << "remote_snap_id=" << remote_snap_id << std::endl;
+
std::string local_image_id;
ASSERT_EQ(0, librbd::cls_client::mirror_image_get_image_id(
&m_local_ioctx, m_global_image_id, &local_image_id));
local_mirror_ns.primary_mirror_uuid == m_remote_mirror_uuid &&
local_mirror_ns.primary_snap_id == remote_snap_id &&
local_mirror_ns.complete) {
+
+ std::cout << "local_snap_id=" << local_snap_id << ", "
+ << "local_snap_ns=" << local_mirror_ns << std::endl;
return;
}
template <typename I>
void ApplyImageStateRequest<I>::set_snapshot_limit() {
- dout(15) << dendl;
+ dout(15) << "snap_limit=" << m_image_state.snap_limit << dendl;
// no need to even check the current limit -- just set it
std::shared_lock owner_locker{m_local_image_ctx->owner_lock};