From: Sage Weil Date: Tue, 27 Sep 2016 18:02:36 +0000 (-0400) Subject: os/bluestore: add assert to compress_extent_map X-Git-Tag: v11.0.1~73^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F11240%2Fhead;p=ceph.git os/bluestore: add assert to compress_extent_map Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 923bda285c26..f59159d2c73d 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -1888,6 +1888,8 @@ int BlueStore::ExtentMap::compress_extent_map(uint64_t offset, uint64_t length) if (p != extent_map.begin()) { --p; // start to the left of offset } + // the caller should have just written to this region + assert(p != extent_map.end()); // identify the *next* shard auto pshard = shards.begin();