assert(orig_indirect ||
(orig_val.pladdr.is_paddr() &&
orig_val.pladdr.get_paddr().is_absolute()));
+ auto type = cursor->get_extent_type();
cursor = co_await update_mapping_refcount(
c.trans, cursor, -1);
iter = btree.make_partial_iter(c, *cursor);
val.refcount = EXTENT_DEFAULT_REF_COUNT;
// Checksum will be updated when the committing the transaction
val.checksum = CRC_NULL;
- val.type = cursor->get_extent_type();
+ val.type = type;
// committing the transaction
auto p = co_await btree.insert(
c, iter, new_key, std::move(val),