]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG::finish_promote: fix snap promote head snaps
authorSamuel Just <sjust@redhat.com>
Wed, 1 Apr 2015 23:25:22 +0000 (16:25 -0700)
committerAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Wed, 1 Jul 2015 17:44:03 +0000 (23:14 +0530)
commit3e44dc16ed3fbda053996e44826aa3d90042a234
tree3790c8f2a81b04e0e479766b6e59a94ae34a3cd8
parent72ecd522941156c8a7e5303531944b0735dcbeb8
ReplicatedPG::finish_promote: fix snap promote head snaps

If the snaps vector is: 10=[9,5,2]:[4]+head, the backing pool's snaps
vector is 3=[2]:[]+head, and we request clone 4 from the backing pool,
the backing pool will send us head with an empty results->snaps vector.
Actually, clone 4 should be trimmed, but the cache pool does not know
that.  Thus, we should construct an empty snaps vector for that clone.

PartialFix: #11296
Backport: firefly, hammer
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit a45a698372def1623323470c6a1c4eb70e0bb79f)
src/osd/ReplicatedPG.cc