if we are creating an osd which has the same id as a previously
removed 'in' osd, we should not mark this newly created osd as 'in'
Signed-off-by: runsisi <runsisi@zte.com.cn>
if (!osdmap.exists(i) &&
pending_inc.new_up_client.count(i) == 0 &&
(pending_inc.new_state.count(i) == 0 ||
- (pending_inc.new_state[i] & CEPH_OSD_EXISTS) == 0))
+ (pending_inc.new_state[i] & CEPH_OSD_EXISTS) == 0)) {
+ pending_inc.new_weight[i] = CEPH_OSD_OUT;
goto done;
+ }
}
// raise max_osd