]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: debug ExtentMap::update()
authorSage Weil <sage@newdream.net>
Tue, 19 Oct 2021 22:04:34 +0000 (17:04 -0500)
committerSage Weil <sage@newdream.net>
Fri, 29 Oct 2021 13:56:43 +0000 (09:56 -0400)
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 <sage@newdream.net>
src/os/bluestore/BlueStore.cc

index 02e51ed1f6f8c9aa08641870979f39bd86e2de05..d87764c00b73c86203e12a20d21d2a3a23410a93 100644 (file)
@@ -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(