From fde4ec62888ba0aee97ce714bb15d191625b736f Mon Sep 17 00:00:00 2001 From: xiexingguo <258156334@qq.com> Date: Tue, 13 Oct 2015 14:04:20 +0800 Subject: [PATCH] OSD:shall reset primary and up_primary fields when beginning a new past_interval. Shall reset primary and up_primary fields when we start over a new past_interval in OSD::build_past_intervals_parallel(). Fixes: #13471 Signed-off-by: xie.xingguo@zte.com.cn (cherry picked from commit 65064ca05bc7f8b6ef424806d1fd14b87add62a4) --- src/osd/OSD.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 413ad594c4f30..bbab1f3cd378a 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -3078,6 +3078,8 @@ void OSD::build_past_intervals_parallel() << " " << debug.str() << dendl; p.old_up = up; p.old_acting = acting; + p.primary = primary; + p.up_primary = up_primary; p.same_interval_since = cur_epoch; } } -- 2.39.5