]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSD: fix build_past_intervals_parallel 8213/head 8215/head
authorDavid Zafman <dzafman@redhat.com>
Fri, 18 Mar 2016 17:42:40 +0000 (10:42 -0700)
committerDavid Zafman <dzafman@redhat.com>
Fri, 18 Mar 2016 17:42:40 +0000 (10:42 -0700)
We may be only calculating older past intervals and have a valid
history.same_interval_since value, in which case the local
same_interval_since value will end at the newest old interval we had to
generate.

Same as 0830275b39afc408573c2c468fa3b0e7b1d5cc4e change in generate_past_intervals()
This was introduced by 70316541bbb115d9a35954bfba373cf1dc084b7e.

Signed-off-by: David Zafman <dzafman@redhat.com>
src/osd/OSD.cc

index 6e0fe88161e70eb3b3c9ba8664b5f39f0f17cf8d..6b1c5855d1c3a0ccfa35068ead1d473de0e957cc 100644 (file)
@@ -3358,10 +3358,7 @@ void OSD::build_past_intervals_parallel()
     PG *pg = i->first;
     pistate& p = i->second;
 
-    // Verify same_interval_since is correct
-    if (pg->info.history.same_interval_since) {
-      assert(pg->info.history.same_interval_since == p.same_interval_since);
-    } else {
+    if (pg->info.history.same_interval_since == 0) {
       assert(p.same_interval_since);
       dout(10) << __func__ << " fix same_interval_since " << p.same_interval_since << " pg " << *pg << dendl;
       dout(10) << __func__ << " past_intervals " << pg->past_intervals << dendl;