]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/Journaler: remove incorrect assertion
authorJohn Spray <john.spray@redhat.com>
Thu, 1 Dec 2016 15:27:39 +0000 (15:27 +0000)
committerJohn Spray <john.spray@redhat.com>
Wed, 8 Mar 2017 10:20:54 +0000 (10:20 +0000)
This asserted that flush_pos would be ahead of
safe_pos after calling _flush.  However, this
is not guaranteed to be the case because
prezeroing might prevent us from flushing
right now.

Signed-off-by: John Spray <john.spray@redhat.com>
src/osdc/Journaler.cc

index ef4893c1aef87d50dae034604cbefda23933d734..629450d030fa17641710a7c318c6254094f37dc7 100644 (file)
@@ -970,7 +970,6 @@ void Journaler::_issue_read(uint64_t len)
     if (flush_pos == safe_pos) {
       _flush(NULL);
     }
-    assert(flush_pos > safe_pos);
     waitfor_safe[flush_pos].push_back(new C_RetryRead(this));
     return;
   }