]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: fix build_initial_pg_history
authorw11979 <wang.wenfeng@h3c.com>
Fri, 1 Sep 2017 14:02:34 +0000 (10:02 -0400)
committerSage Weil <sage@redhat.com>
Fri, 1 Sep 2017 14:04:17 +0000 (10:04 -0400)
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 <wang.wenfeng@h3c.com>
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc

index ddf67319a110c07987f54f9d6f8a502958b8fc35..35c875846900a50f760e779c34b6d7626c0ce376 100644 (file)
@@ -4436,6 +4436,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