From 3ddb07088e46646dedccbfa2cbe1dcc87fc6db3e Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 19 Oct 2021 17:04:34 -0500 Subject: [PATCH] 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 --- src/os/bluestore/BlueStore.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 02e51ed1f6f..d87764c00b7 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( -- 2.39.5