]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSD.cc: finish full_map_request every MOSDMap message. 8147/head
authorXiaoxi Chen <xiaoxchen@ebay.com>
Wed, 16 Mar 2016 08:13:28 +0000 (01:13 -0700)
committerXiaoxi Chen <xiaoxchen@ebay.com>
Wed, 23 Mar 2016 09:03:15 +0000 (02:03 -0700)
commitc804416d78ef65ba83c35b1a843324fd6f8556b4
tree1bfaaea54436b1c78d3b5db2f3d411b1108682e1
parent135d5fe1d2b4cf88a270f24760df1db15313e5c3
osd/OSD.cc: finish full_map_request every MOSDMap message.

We remember the range of requested full map in requested_full_first/last
and prevent sending duplicate requests.

But monitor will cap the reply to osd_map_message_max number of maps, for example,
OSD request [100, 200] while monitor only return [100,149], previous code think
[150, 200] is dup and prevent the OSD to send out the request, which is wrong.

Fix this by clear the requested_full_first/last field at the end of handle_osd_map.

Fixes: #15130
Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
src/osd/OSD.cc
src/osd/OSD.h