non-fully-loaded TestBlocks
Before this commit, all TestBlocks are fully-loaded whether they do have
data or not.
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
(cherry picked from commit
61d7f8821fa06cf48911230228687abdf747dba2)
: LogicalCachedExtent(std::move(ptr)) {}
TestBlock(const TestBlock &other)
: LogicalCachedExtent(other), modified_region(other.modified_region) {}
+ TestBlock(extent_len_t length)
+ : LogicalCachedExtent(length) {}
CachedExtentRef duplicate_for_write(Transaction&) final {
return CachedExtentRef(new TestBlock(*this));