mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
crimson/os/seastore: remove CachedExtent move constructor
I'm not sure why I added this in the first place, there aren't really any scenarios where invoking it wouldn't be a bug. Signed-off-by: Samuel Just <sjust@redhat.com>
This commit is contained in:
parent
5f2bd86f21
commit
7670fccc42
@ -313,7 +313,7 @@ private:
|
||||
}
|
||||
|
||||
protected:
|
||||
CachedExtent(CachedExtent &&other) = default;
|
||||
CachedExtent(CachedExtent &&other) = delete;
|
||||
CachedExtent(ceph::bufferptr &&ptr) : ptr(std::move(ptr)) {}
|
||||
CachedExtent(const CachedExtent &other)
|
||||
: state(other.state),
|
||||
|
@ -15,10 +15,7 @@ struct OnodeBlock final : LogicalCachedExtent {
|
||||
|
||||
template <typename... T>
|
||||
OnodeBlock(T&&... t) : LogicalCachedExtent(std::forward<T>(t)...) {}
|
||||
OnodeBlock(OnodeBlock&& block) noexcept
|
||||
: LogicalCachedExtent{std::move(block)},
|
||||
deltas{std::move(block.deltas)}
|
||||
{}
|
||||
OnodeBlock(OnodeBlock&& block) = delete;
|
||||
OnodeBlock(const OnodeBlock& block, CachedExtent::share_buffer_t tag) noexcept
|
||||
: LogicalCachedExtent{block, tag},
|
||||
share_buffer{true}
|
||||
|
Loading…
Reference in New Issue
Block a user