mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
Merge pull request #52446 from xxhdx1985126/wip-seastore-lazy-read-patch
crimson/os/seastore/transaction_manager: data loss issues Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com> Reviewed-by: Xinyu Huang <xinyu.huang@intel.com>
This commit is contained in:
commit
cf49dbed53
@ -505,7 +505,7 @@ public:
|
||||
extent_len_t length,
|
||||
Func &&extent_init_func) {
|
||||
CachedExtentRef ret;
|
||||
LOG_PREFIX(Cache::get_extent);
|
||||
LOG_PREFIX(Cache::get_absent_extent);
|
||||
|
||||
#ifndef NDEBUG
|
||||
auto r = t.get_extent(offset, &ret);
|
||||
|
@ -19,10 +19,12 @@ namespace crimson::os::seastore {
|
||||
struct ObjectDataBlock : crimson::os::seastore::LogicalCachedExtent {
|
||||
using Ref = TCachedExtentRef<ObjectDataBlock>;
|
||||
|
||||
ObjectDataBlock(ceph::bufferptr &&ptr)
|
||||
explicit ObjectDataBlock(ceph::bufferptr &&ptr)
|
||||
: LogicalCachedExtent(std::move(ptr)) {}
|
||||
ObjectDataBlock(const ObjectDataBlock &other)
|
||||
explicit ObjectDataBlock(const ObjectDataBlock &other)
|
||||
: LogicalCachedExtent(other) {}
|
||||
explicit ObjectDataBlock(extent_len_t length)
|
||||
: LogicalCachedExtent(length) {}
|
||||
|
||||
CachedExtentRef duplicate_for_write(Transaction&) final {
|
||||
return CachedExtentRef(new ObjectDataBlock(*this));
|
||||
|
Loading…
Reference in New Issue
Block a user