]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: always encode snaps in finish_ctx
authorSage Weil <sage@inktank.com>
Thu, 26 Dec 2013 17:19:08 +0000 (09:19 -0800)
committerSage Weil <sage@inktank.com>
Tue, 14 Jan 2014 00:19:40 +0000 (16:19 -0800)
commit38fe575d56b8e5acc11dfdf84f2d7e74cb55dc36
treea88426a522f586890adfdd20ae1e1a9d468591e0
parentbfd4530189b2f5f4763e54f6f6a02302a6dd4536
osd/ReplicatedPG: always encode snaps in finish_ctx

On promote we use finish_ctx to build the final log entries, and need to
encode the snaps vector in that case.  (Normally this is done by
make_writeable or explicitly by the snap trimmer.)

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc