]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-objectstore-tool: handle both new and legacy SnapSet format
authorSage Weil <sage@redhat.com>
Thu, 30 Mar 2017 20:25:15 +0000 (16:25 -0400)
committerSage Weil <sage@redhat.com>
Fri, 5 May 2017 17:39:13 +0000 (13:39 -0400)
commitaed09380ca314f75d4f01cda2ffb0c7b7c1c1dbc
tree3014b20848340d6b24d75393e16ea1eba7eaa16e
parentc048f6affb7ec55d4fd5b292f2a8b5955d1a390e
ceph-objectstore-tool: handle both new and legacy SnapSet format

If we encounter legacy snaps, add to snapmapper then; otherwise, use the
clone_snaps field in SnapSet to add all clones to snapmapper when we
process the head object.

Signed-off-by: Sage Weil <sage@redhat.com>
src/tools/ceph_objectstore_tool.cc
src/tools/ceph_objectstore_tool.h