From: Jason Dillaman Date: Fri, 10 Apr 2015 19:43:45 +0000 (-0400) Subject: librbd: notify of header update after rebuilding object map X-Git-Tag: v9.0.1~149^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=06f30fc18de8398ce4b765ea4e4403822c07604c;p=ceph.git librbd: notify of header update after rebuilding object map 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 --- diff --git a/src/librbd/internal.cc b/src/librbd/internal.cc index 4d7f54086a2d..67ab35dfc6a1 100644 --- a/src/librbd/internal.cc +++ b/src/librbd/internal.cc @@ -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; }