]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMap: do not trust partially simplified pg_upmap_item 30898/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 25 Sep 2019 11:36:10 +0000 (19:36 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 14 Oct 2019 12:33:27 +0000 (14:33 +0200)
commitecec5561ebf109a834760c0d407868b47865f0c9
treec8a92526c8244c6e98adabe9774b4a367ca7427c
parente78333157fbdbae5bc9141e7d6fa407ddcba4104
osd/OSDMap: do not trust partially simplified pg_upmap_item

If we simplified a partially no-op pg_upmap_item, we shall still
continue to verify that the remaining part is valid.
The bug is introduced by 02e5499b350bcd7d9eac98b2072052a9a4a1f535,
before which we always validate the correctness of a pg_upmap_item
before trying to cancel or simplify it.

Fixes: https://tracker.ceph.com/issues/42052
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 4196b13283144de966eeba40e6765f10b254dac6)
src/osd/OSDMap.cc
src/test/osd/TestOSDMap.cc