]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: ensure object map is invalidated on disk if forced
authorJason Dillaman <dillaman@redhat.com>
Wed, 25 Nov 2015 16:46:00 +0000 (11:46 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 2 Dec 2015 16:11:11 +0000 (11:11 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/object_map/InvalidateRequest.cc

index 464a5dacc86df74cb5f941ae61437d519360bec3..34506e41027a9da60a7cf313bd6e1d911f20583c 100644 (file)
@@ -42,7 +42,7 @@ void InvalidateRequest::send() {
   // do not update on-disk flags if not image owner
   if (m_image_ctx.image_watcher == NULL ||
       (m_image_ctx.image_watcher->is_lock_supported(m_image_ctx.snap_lock) &&
-       !m_image_ctx.image_watcher->is_lock_owner())) {
+       !m_image_ctx.image_watcher->is_lock_owner() && !m_force)) {
     async_complete(0);
     return;
   }