diff options
author | Kefu Chai <kchai@redhat.com> | 2020-08-21 08:27:56 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2020-08-24 11:51:32 +0200 |
commit | 0daa762ece3abcdbae0cb1be77977824930b3402 (patch) | |
tree | d5dda827f760ed6a50c80e6c6a511ca415ba8278 /src/crimson/osd/pg_backend.h | |
parent | test/pybind: remove object for testing after done with it (diff) | |
download | ceph-0daa762ece3abcdbae0cb1be77977824930b3402.tar.xz ceph-0daa762ece3abcdbae0cb1be77977824930b3402.zip |
crimson/osd: refactor PGBackend::read() to pass os and op
prepare for the table based op lookup/execution.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/crimson/osd/pg_backend.h')
-rw-r--r-- | src/crimson/osd/pg_backend.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/crimson/osd/pg_backend.h b/src/crimson/osd/pg_backend.h index 8efb012e515..accfd260db8 100644 --- a/src/crimson/osd/pg_backend.h +++ b/src/crimson/osd/pg_backend.h @@ -55,13 +55,9 @@ public: std::map<std::string, ceph::bufferptr, std::less<>>; using read_errorator = ll_read_errorator::extend< crimson::ct_error::object_corrupted>; - read_errorator::future<ceph::bufferlist> read( - const object_info_t& oi, - uint64_t off, - uint64_t len, - size_t truncate_size, - uint32_t truncate_seq, - uint32_t flags); + read_errorator::future<> read( + const ObjectState& os, + OSDOp& osd_op); read_errorator::future<> sparse_read( const ObjectState& os, OSDOp& osd_op); |