From e2e81403f8dd2329c0e99c8c8abbfa8351f0401e Mon Sep 17 00:00:00 2001 From: w11979 Date: Fri, 1 Sep 2017 10:02:34 -0400 Subject: [PATCH] osd: fix build_initial_pg_history We need to update our info about the previous interval in order to detect interval changes properly. Fixes: http://tracker.ceph.com/issues/21203 Signed-off-by: w11979 Signed-off-by: Sage Weil (cherry picked from commit afdacc6ed76dd288fdbc0f99857d9ffba23c5132) --- src/osd/OSD.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 28608f1250a9c..7795b857b9db2 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4454,6 +4454,10 @@ void OSD::build_initial_pg_history( h->last_epoch_split = e; } lastmap = osdmap; + up_primary = new_up_primary; + acting_primary = new_acting_primary; + up = new_up; + acting = new_acting; } dout(20) << __func__ << " " << debug.str() << dendl; dout(10) << __func__ << " " << *h << " " << *pi -- 2.39.5