From 340bc58b5a776cf31c668edbc089704bc8f11c61 Mon Sep 17 00:00:00 2001 From: Huisheng Liu Date: Mon, 26 Feb 2024 11:49:35 -0800 Subject: [PATCH] add wait() method to AlignedFileReader (#518) --- include/aligned_file_reader.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/aligned_file_reader.h b/include/aligned_file_reader.h index f5e2af5c3..f39d5da39 100644 --- a/include/aligned_file_reader.h +++ b/include/aligned_file_reader.h @@ -117,4 +117,9 @@ class AlignedFileReader // process batch of aligned requests in parallel // NOTE :: blocking call virtual void read(std::vector &read_reqs, IOContext &ctx, bool async = false) = 0; + +#ifdef USE_BING_INFRA + // wait for completion of one request in a batch of requests + virtual void wait(IOContext &ctx, int &completedIndex) = 0; +#endif };