]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: clear error when older OSD doesn't support image flags 7035/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 23 Dec 2015 14:41:32 +0000 (09:41 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 23 Dec 2015 14:47:37 +0000 (09:47 -0500)
Fixes: #14122
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/image/RefreshRequest.cc

index c5edf34059389f5f826425b6ea406c8ccef1d3eb..c06dc1458eae20013cf113a95949bcaa7c1a1df6 100644 (file)
@@ -275,6 +275,7 @@ Context *RefreshRequest<I>::handle_v2_get_flags(int *result) {
   }
   if (*result == -EOPNOTSUPP) {
     // Older OSD doesn't support RBD flags, need to assume the worst
+    *result = 0;
     ldout(cct, 10) << "OSD does not support RBD flags, disabling object map "
                    << "optimizations" << dendl;
     m_flags = RBD_FLAG_OBJECT_MAP_INVALID;