crimson/os/seastore: correct the parameter passed to LBAManager::clone_mapping

Signed-off-by: Zhang Song <zhangsong02@qianxin.com>
This commit is contained in:
Zhang Song 2024-01-16 16:13:03 +08:00
parent ceb5df6109
commit 6bd05fcf62

View File

@ -517,6 +517,10 @@ public:
mapping.is_indirect()
? mapping.get_intermediate_key()
: mapping.get_key();
auto intermediate_base =
mapping.is_indirect()
? mapping.get_intermediate_base()
: mapping.get_key();
LOG_PREFIX(TransactionManager::clone_pin);
SUBDEBUGT(seastore_tm, "len={}, laddr_hint={}, clone_offset {}",
@ -528,7 +532,7 @@ public:
mapping.get_length(),
intermediate_key,
mapping.get_val(),
intermediate_key
intermediate_base
);
}