Fill out the rest of the degraded read logic; now we need to make it a "coroutine"

This commit is contained in:
Vitaliy Filippov
2020-02-02 00:05:56 +03:00
parent 206c4eb655
commit 9fb2d3f840
4 changed files with 65 additions and 11 deletions
+2 -1
View File
@@ -74,8 +74,8 @@ struct osd_client_t
int peer_fd;
int peer_state;
std::function<void(int)> connect_callback;
// osd numbers begin with 1
uint64_t osd_num = 0;
//int in_flight_ops = 0;
// Read state
bool read_ready = false;
@@ -122,6 +122,7 @@ class osd_t
std::vector<pg_t> pgs;
int peering_state = 0;
unsigned pg_count = 0;
uint64_t next_subop_id = 1;
// client & peer I/O