]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: ensure consistency groups will gracefully fail on older OSDs
authorJason Dillaman <dillaman@redhat.com>
Mon, 24 Oct 2016 15:43:33 +0000 (11:43 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 24 Oct 2016 15:56:48 +0000 (11:56 -0400)
commit0d81674eee92536503bdfacad8fdebe42fee5a19
tree59de0c3f74e3896b4017129717093bafb8dd5910
parente7da810e75e6b29754fe8c0dcde88a51d5d9a30a
librbd: ensure consistency groups will gracefully fail on older OSDs

Attempting to retrieve the group spec will fail on older OSDs, so it
must be executed as an individual step in the refresh state machine.
Also fixed code style issues for out parameters.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
13 files changed:
src/cls/rbd/cls_rbd_client.cc
src/cls/rbd/cls_rbd_client.h
src/include/rbd/librbd.hpp
src/librbd/Group.cc
src/librbd/Group.h
src/librbd/image/RefreshRequest.cc
src/librbd/image/RefreshRequest.h
src/librbd/internal.cc
src/librbd/librbd.cc
src/test/cls_rbd/test_cls_rbd.cc
src/test/librbd/image/test_mock_RefreshRequest.cc
src/test/librbd/test_ConsistencyGroups.cc
src/tools/rbd/action/Group.cc