|
23 | 23 | #include "messages/MOSDECSubOpRead.h" |
24 | 24 | #include "messages/MOSDECSubOpReadReply.h" |
25 | 25 | #include "ECMsgTypes.h" |
| 26 | +#include "ECTypes.h" |
26 | 27 |
|
27 | 28 | #include "PrimaryLogPG.h" |
28 | 29 | #include "osd_tracer.h" |
@@ -195,8 +196,8 @@ struct RecoveryMessages { |
195 | 196 | const map<pg_shard_t, vector<pair<int, int>>> &need, |
196 | 197 | bool attrs) |
197 | 198 | { |
198 | | - list<ECCommonL::ec_align_t> to_read; |
199 | | - to_read.emplace_back(ECCommonL::ec_align_t{off, len, 0}); |
| 199 | + list<ec_align_t> to_read; |
| 200 | + to_read.emplace_back(ec_align_t{off, len, 0}); |
200 | 201 | ceph_assert(!recovery_reads.count(hoid)); |
201 | 202 | want_to_read.insert(make_pair(hoid, std::move(_want_to_read))); |
202 | 203 | recovery_reads.insert( |
@@ -463,7 +464,7 @@ struct RecoveryReadCompleter : ECCommonL::ReadCompleter { |
463 | 464 | void finish_single_request( |
464 | 465 | const hobject_t &hoid, |
465 | 466 | ECCommonL::read_result_t &res, |
466 | | - list<ECCommonL::ec_align_t>, |
| 467 | + list<ec_align_t>, |
467 | 468 | set<int> wanted_to_read) override |
468 | 469 | { |
469 | 470 | if (!(res.r == 0 && res.errors.empty())) { |
@@ -1567,7 +1568,7 @@ int ECBackendL::objects_read_sync( |
1567 | 1568 |
|
1568 | 1569 | void ECBackendL::objects_read_async( |
1569 | 1570 | const hobject_t &hoid, |
1570 | | - const list<pair<ECCommonL::ec_align_t, |
| 1571 | + const list<pair<ec_align_t, |
1571 | 1572 | pair<bufferlist*, Context*>>> &to_read, |
1572 | 1573 | Context *on_complete, |
1573 | 1574 | bool fast_read) |
@@ -1599,14 +1600,14 @@ void ECBackendL::objects_read_async( |
1599 | 1600 | struct cb { |
1600 | 1601 | ECBackendL *ec; |
1601 | 1602 | hobject_t hoid; |
1602 | | - list<pair<ECCommonL::ec_align_t, |
| 1603 | + list<pair<ec_align_t, |
1603 | 1604 | pair<bufferlist*, Context*> > > to_read; |
1604 | 1605 | unique_ptr<Context> on_complete; |
1605 | 1606 | cb(const cb&) = delete; |
1606 | 1607 | cb(cb &&) = default; |
1607 | 1608 | cb(ECBackendL *ec, |
1608 | 1609 | const hobject_t &hoid, |
1609 | | - const list<pair<ECCommonL::ec_align_t, |
| 1610 | + const list<pair<ec_align_t, |
1610 | 1611 | pair<bufferlist*, Context*> > > &to_read, |
1611 | 1612 | Context *on_complete) |
1612 | 1613 | : ec(ec), |
@@ -1680,7 +1681,7 @@ void ECBackendL::objects_read_async( |
1680 | 1681 |
|
1681 | 1682 | void ECBackendL::objects_read_and_reconstruct( |
1682 | 1683 | const map<hobject_t, |
1683 | | - std::list<ECBackendL::ec_align_t> |
| 1684 | + std::list<ec_align_t> |
1684 | 1685 | > &reads, |
1685 | 1686 | bool fast_read, |
1686 | 1687 | GenContextURef<ECCommonL::ec_extents_t &&> &&func) |
|
0 commit comments