From: Sage Weil Date: Tue, 19 Oct 2021 22:04:34 +0000 (-0500) Subject: os/bluestore: debug ExtentMap::update() X-Git-Tag: v17.1.0~535^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3ddb07088e46646dedccbfa2cbe1dcc87fc6db3e;p=ceph.git os/bluestore: debug ExtentMap::update() I hit a case where the shard key size didn't match, and it looked as though this code somehow didn't get executed. Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 02e51ed1f6f8..d87764c00b73 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -2641,6 +2641,8 @@ void BlueStore::ExtentMap::update(KeyValueDB::Transaction t, // schedule DB update for dirty shards string key; for (auto& it : encoded_shards) { + dout(20) << __func__ << " encoding key for shard 0x" << std::hex + << it.shard->shard_info->offset << std::dec << dendl; it.shard->dirty = false; it.shard->shard_info->bytes = it.bl.length(); generate_extent_shard_key_and_apply(