]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
1 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- |
2 | // vim: ts=8 sw=2 smarttab | |
3 | ||
4 | #pragma once | |
5 | ||
6 | #include <boost/intrusive_ptr.hpp> | |
7 | #include <seastar/core/future.hh> | |
8 | #include "include/buffer_fwd.h" | |
9 | #include "osd/osd_types.h" | |
10 | #include "pg_backend.h" | |
11 | ||
12 | class ECBackend : public PGBackend | |
13 | { | |
14 | public: | |
15 | ECBackend(shard_id_t shard, | |
16 | CollectionRef coll, | |
17 | crimson::osd::ShardServices& shard_services, | |
18 | const ec_profile_t& ec_profile, | |
19 | uint64_t stripe_width); | |
f67539c2 TL |
20 | seastar::future<> stop() final { |
21 | return seastar::now(); | |
22 | } | |
23 | void on_actingset_changed(peering_info_t pi) final {} | |
9f95a23c TL |
24 | private: |
25 | ll_read_errorator::future<ceph::bufferlist> _read(const hobject_t& hoid, | |
26 | uint64_t off, | |
27 | uint64_t len, | |
28 | uint32_t flags) override; | |
29 | seastar::future<crimson::osd::acked_peers_t> | |
30 | _submit_transaction(std::set<pg_shard_t>&& pg_shards, | |
31 | const hobject_t& hoid, | |
32 | ceph::os::Transaction&& txn, | |
f67539c2 | 33 | const osd_op_params_t& req, |
9f95a23c | 34 | epoch_t min_epoch, epoch_t max_epoch, |
f67539c2 | 35 | std::vector<pg_log_entry_t>&& log_entries) final; |
9f95a23c TL |
36 | CollectionRef coll; |
37 | crimson::os::FuturizedStore* store; | |
38 | }; |