]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: fix problematic got_full_map() logic 8810/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 28 Apr 2016 09:43:05 +0000 (17:43 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 28 Apr 2016 13:21:44 +0000 (21:21 +0800)
commit2ee61e9857ea37b37074be45e8d19822cef49bf6
tree5486b735cf201e769cbe063b1bdf4ebf96c20d07
parent4cdf0aa7ed93874853d1d51874f46a9b8df0b092
osd: fix problematic got_full_map() logic

We shall only clear out requested_full_first/last either we got all
we want or we received a map that was newer than requested_full_last.

Also we shall increase requested_full_first properly to reflect exactly
we have got instead of advancing requested_full_first blindly.

NB: if requested_full_first is equal to requested_full_last, we still
have one epoch to request.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSD.cc