]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSD: fix build_past_intervals_parallel 8464/head
authorDavid Zafman <dzafman@redhat.com>
Fri, 18 Mar 2016 17:42:40 +0000 (10:42 -0700)
committerDavid Zafman <dzafman@redhat.com>
Wed, 6 Apr 2016 16:53:01 +0000 (09:53 -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>
(cherry picked from commit 0fd674bbf0c17a673be40123645adee3d64375a0)

src/osd/OSD.cc

index 86de1bb380f2ee58de9581a853e54fc92084a4ad..857322ba065f0dacba9e0b5d1ff49b966de1873c 100644 (file)
@@ -3080,10 +3080,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;