]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ECBackend::try_state_to_reads: assert that rmw ops require hacky_overwrites enabled
authorSamuel Just <sjust@redhat.com>
Tue, 29 Nov 2016 22:48:10 +0000 (14:48 -0800)
committerSamuel Just <sjust@redhat.com>
Fri, 2 Dec 2016 21:40:18 +0000 (13:40 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ECBackend.cc

index cadfa6af01211a0c70fd94c088c3a4a1a1d46b81..7973dad39b7172d43253e157dde6ae09a992afa5 100644 (file)
@@ -1735,6 +1735,7 @@ bool ECBackend::try_state_to_reads()
 
   Op *op = &(waiting_state.front());
   if (op->requires_rmw() && pipeline_state.cache_invalid()) {
+    assert(get_parent()->get_pool().is_hacky_ecoverwrites());
     dout(20) << __func__ << ": blocking " << *op
             << " because it requires an rmw and the cache is invalid"
             << pipeline_state
@@ -1785,6 +1786,7 @@ bool ECBackend::try_state_to_reads()
   dout(10) << __func__ << ": " << *op << dendl;
 
   if (!op->remote_read.empty()) {
+    assert(get_parent()->get_pool().is_hacky_ecoverwrites());
     objects_read_async_no_cache(
       op->remote_read,
       [this, op](hobject_t::bitwisemap<extent_map> &&results) {