int r = m_local_image_ctx->is_snap_unprotected(local_snap_id,
&local_unprotected);
if (r < 0) {
- derr << "failed to retrieve local snap unprotect status: "
+ derr << ": failed to retrieve local snap unprotect status: "
<< cpp_strerror(r) << dendl;
m_local_image_ctx->snap_lock.put_read();
finish(r);
r = m_remote_image_ctx->is_snap_unprotected(snap_seq_it->first,
&remote_unprotected);
if (r < 0) {
- derr << "failed to retrieve remote snap unprotect status: "
+ derr << ": failed to retrieve remote snap unprotect status: "
<< cpp_strerror(r) << dendl;
m_remote_image_ctx->snap_lock.put_read();
finish(r);
auto snap_info_it = m_remote_image_ctx->snap_info.find(m_prev_snap_id);
if (snap_info_it == m_remote_image_ctx->snap_info.end()) {
m_remote_image_ctx->snap_lock.put_read();
- derr << "failed to retrieve remote snap info: " << m_snap_name
+ derr << ": failed to retrieve remote snap info: " << m_snap_name
<< dendl;
finish(-ENOENT);
return;
int r = m_remote_image_ctx->is_snap_protected(remote_snap_id,
&remote_protected);
if (r < 0) {
- derr << "failed to retrieve remote snap protect status: "
+ derr << ": failed to retrieve remote snap protect status: "
<< cpp_strerror(r) << dendl;
m_remote_image_ctx->snap_lock.put_read();
finish(r);
r = m_local_image_ctx->is_snap_protected(snap_seq_it->second,
&local_protected);
if (r < 0) {
- derr << "failed to retrieve local snap protect status: "
+ derr << ": failed to retrieve local snap protect status: "
<< cpp_strerror(r) << dendl;
m_local_image_ctx->snap_lock.put_read();
finish(r);
m_local_image_ctx->snap_lock.get_read();
auto snap_it = m_local_image_ctx->snap_ids.find(m_snap_name);
if (snap_it == m_local_image_ctx->snap_ids.end()) {
- derr << "failed to locate snap: " << m_snap_name << dendl;
+ derr << ": failed to locate snap: " << m_snap_name << dendl;
m_local_image_ctx->snap_lock.put_read();
finish(-ENOENT);
return;