Skip to content

Commit

Permalink
Merge pull request #10646: jewel: rbd-mirror: FAILED assert(m_local_i…
Browse files Browse the repository at this point in the history
…mage_ctx->object_map != nullptr)

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
Loic Dachary committed Aug 12, 2016
2 parents fe9713d + 8316b6a commit 7255bca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tools/rbd_mirror/image_sync/ObjectCopyRequest.cc
Expand Up @@ -235,6 +235,13 @@ void ObjectCopyRequest<I>::send_update_object_map() {
m_local_image_ctx->snap_lock.put_read();
finish(0);
return;
} else if (m_local_image_ctx->object_map == nullptr) {
// possible that exclusive lock was lost in background
derr << ": object map is not initialized" << dendl;

m_local_image_ctx->snap_lock.put_read();
finish(-EINVAL);
return;
}

assert(m_local_image_ctx->object_map != nullptr);
Expand Down

0 comments on commit 7255bca

Please sign in to comment.