]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: notify of header update after rebuilding object map 4140/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 10 Apr 2015 19:43:45 +0000 (15:43 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 10 Apr 2015 19:46:22 +0000 (15:46 -0400)
This will allow clients to detect that the object map is no longer
invalid and to reload the object map from disk.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/internal.cc

index 4d7f54086a2da59128c34d64fcd93507e4475f9d..67ab35dfc6a17e9262163d62d6ade4664b81cdd7 100644 (file)
@@ -2732,6 +2732,9 @@ reprotect_and_return_err:
     }
 
     ldout(cct, 10) << "rebuild object map finished" << dendl;
+    if (r < 0) {
+      notify_change(ictx->md_ctx, ictx->header_oid, ictx);
+    }
     return r;
   }