Skip to content

Commit

Permalink
Merge pull request #21245 from ifed01/wip-ifed-shard-bug-logging
Browse files Browse the repository at this point in the history
os/bluestore: be more verbose when hitting unloaded shard in extent map

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
  • Loading branch information
xiexingguo committed Apr 8, 2018
2 parents 8d87f1c + 70cda17 commit 1cdc916
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/os/bluestore/BlueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2819,8 +2819,9 @@ void BlueStore::ExtentMap::dirty_range(
assert((size_t)start < shards.size());
auto p = &shards[start];
if (!p->loaded) {
dout(20) << __func__ << " shard 0x" << std::hex << p->shard_info->offset
<< std::dec << " is not loaded, can't mark dirty" << dendl;
derr << __func__ << "on write 0x" << std::hex << offset
<< "~" << length << " shard 0x" << p->shard_info->offset
<< std::dec << " is not loaded, can't mark dirty" << dendl;
assert(0 == "can't mark unloaded shard dirty");
}
if (!p->dirty) {
Expand Down

0 comments on commit 1cdc916

Please sign in to comment.