]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: mirror SnapSet info when promoting head
authorSage Weil <sage@inktank.com>
Fri, 27 Dec 2013 02:05:22 +0000 (18:05 -0800)
committerSage Weil <sage@inktank.com>
Tue, 14 Jan 2014 00:19:40 +0000 (16:19 -0800)
commitbfd4530189b2f5f4763e54f6f6a02302a6dd4536
treebed4b049e62d7451a4baece18fd88a8307209be3
parent0554735872afd0b7b7dbaecc8c8c6511efe9c0bc
osd/ReplicatedPG: mirror SnapSet info when promoting head

When we promote the head for an object, get the list of snaps from the
backend pool and construct an appropriate SnapSet.  Note that this is
always placed on the head in the cache pool, since we will have a
whiteout object in this case.

Also note that the SnapSet's list of snapids will not include any snaps
for which there were no clones.  This is fine, since it is only used for
creating clones, and we've already done that.

Signed-off-by: Sage Weil <sage@inktank.com>
src/include/rados/rados_types.hpp
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h