]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: _do_remove::add sanity check
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 27 Jun 2017 07:39:07 +0000 (15:39 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 5 Jul 2017 00:25:26 +0000 (08:25 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 84a4da26d19f16802a3943411cc1294fd8bc74d7..05d0cd143d99d4c5ca206287d099f09611a1ea27 100644 (file)
@@ -10458,6 +10458,7 @@ int BlueStore::_do_remove(
           }
         }
 
+        assert(b_end > b_start);
        h->extent_map.dirty_range(b_start, b_end - b_start);
        txc->write_onode(h);
       }