}
CephContext *cct = m_image_ctx->cct;
- ldout(cct, 20) << dendl;
+ ldout(cct, 15) << dendl;
auto ctx = create_context_callback<
CreateNonPrimaryRequest<I>,
template <typename I>
void CreateNonPrimaryRequest<I>::handle_refresh_image(int r) {
CephContext *cct = m_image_ctx->cct;
- ldout(cct, 20) << "r=" << r << dendl;
+ ldout(cct, 15) << "r=" << r << dendl;
if (r < 0) {
lderr(cct) << "failed to refresh image: " << cpp_strerror(r) << dendl;
template <typename I>
void CreateNonPrimaryRequest<I>::get_mirror_image() {
CephContext *cct = m_image_ctx->cct;
- ldout(cct, 20) << dendl;
+ ldout(cct, 15) << dendl;
librados::ObjectReadOperation op;
cls_client::mirror_image_get_start(&op, m_image_ctx->id);
template <typename I>
void CreateNonPrimaryRequest<I>::handle_get_mirror_image(int r) {
CephContext *cct = m_image_ctx->cct;
- ldout(cct, 20) << "r=" << r << dendl;
+ ldout(cct, 15) << "r=" << r << dendl;
cls::rbd::MirrorImage mirror_image;
if (r == 0) {
}
CephContext *cct = m_image_ctx->cct;
- ldout(cct, 20) << dendl;
+ ldout(cct, 15) << dendl;
librados::ObjectReadOperation op;
cls_client::mirror_peer_list_start(&op);
template <typename I>
void CreateNonPrimaryRequest<I>::handle_get_mirror_peers(int r) {
CephContext *cct = m_image_ctx->cct;
- ldout(cct, 20) << "r=" << r << dendl;
+ ldout(cct, 15) << "r=" << r << dendl;
std::vector<cls::rbd::MirrorPeer> peers;
if (r == 0) {
}
ns.snap_seqs = m_snap_seqs;
ns.complete = is_orphan();
- ldout(cct, 20) << "ns=" << ns << dendl;
+ ldout(cct, 15) << "ns=" << ns << dendl;
auto ctx = create_context_callback<
CreateNonPrimaryRequest<I>,
&CreateNonPrimaryRequest<I>::handle_create_snapshot>(this);
- m_image_ctx->operations->snap_create(ns, m_snap_name, ctx);
+ m_image_ctx->operations->snap_create(ns, m_snap_name, 0, m_prog_ctx, ctx);
}
template <typename I>
void CreateNonPrimaryRequest<I>::handle_create_snapshot(int r) {
CephContext *cct = m_image_ctx->cct;
- ldout(cct, 20) << "r=" << r << dendl;
+ ldout(cct, 15) << "r=" << r << dendl;
if (r < 0) {
lderr(cct) << "failed to create mirror snapshot: " << cpp_strerror(r)
}
CephContext *cct = m_image_ctx->cct;
- ldout(cct, 20) << dendl;
+ ldout(cct, 15) << dendl;
auto ctx = create_context_callback<
CreateNonPrimaryRequest<I>,
template <typename I>
void CreateNonPrimaryRequest<I>::handle_write_image_state(int r) {
CephContext *cct = m_image_ctx->cct;
- ldout(cct, 20) << "r=" << r << dendl;
+ ldout(cct, 15) << "r=" << r << dendl;
if (r < 0) {
lderr(cct) << "failed to write image state: " << cpp_strerror(r)
template <typename I>
void CreateNonPrimaryRequest<I>::finish(int r) {
CephContext *cct = m_image_ctx->cct;
- ldout(cct, 20) << "r=" << r << dendl;
+ ldout(cct, 15) << "r=" << r << dendl;
m_on_finish->complete(r);
delete this;