Skip to content

Commit

Permalink
Merge pull request #10646 from dachary/wip-16576-jewel
Browse files Browse the repository at this point in the history
jewel: rbd-mirror: FAILED assert(m_local_image_ctx->object_map != nullptr)

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
  • Loading branch information
Loic Dachary committed Aug 24, 2016
2 parents 0c60d47 + 8316b6a commit 4f3605b
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 4f3605b

Please sign in to comment.