From: xiexingguo Date: Tue, 11 Oct 2016 14:16:34 +0000 (+0800) Subject: os/bluestore: add sanity check to shard offset when updating X-Git-Tag: v11.1.0~663^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4e33747f41c4ae573dd1be8aadba0ff0940065b8;p=ceph.git os/bluestore: add sanity check to shard offset when updating Signed-off-by: xiexingguo --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 2da1633c090e..aee0d3caff8f 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -1520,6 +1520,7 @@ bool BlueStore::ExtentMap::update(Onode *o, KeyValueDB::Transaction t, << p->offset << std::dec << " is " << bl.length() << " bytes (was " << p->shard_info->bytes << ") from " << n << " extents" << dendl; + assert(p->shard_info->offset == p->offset); p->shard_info->bytes = bl.length(); p->shard_info->extents = n; if (!force &&