From edd72e10acbf10bdede4ea83095efe99138ca6d5 Mon Sep 17 00:00:00 2001 From: Asias He Date: Mon, 10 Sep 2018 15:30:32 +0800 Subject: [PATCH] repair: Introduce get_sync_boundary_response The return value of the REPAIR_GET_SYNC_BOUNDARY verb. It will be used in the row level repair code soon. --- repair/repair.hh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/repair/repair.hh b/repair/repair.hh index d8e38a0b29..ebe00f9c56 100644 --- a/repair/repair.hh +++ b/repair/repair.hh @@ -166,6 +166,18 @@ public: } }; +// Return value of the REPAIR_GET_SYNC_BOUNDARY RPC verb +struct get_sync_boundary_response { + std::optional boundary; + repair_hash row_buf_combined_csum; + // The current size of the row buf + uint64_t row_buf_size; + // The number of bytes this verb read from disk + uint64_t new_rows_size; + // The number of rows this verb read from disk + uint64_t new_rows_nr; +}; + namespace std { template<> struct hash {