mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
21 lines
342 B
C++
21 lines
342 B
C++
#pragma once
|
|
|
|
#include <IO/AsynchronousReader.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Implementation of IAsynchronousReader that in fact synchronous.
|
|
* The only addition is posix_fadvise.
|
|
*/
|
|
class SynchronousReader final : public IAsynchronousReader
|
|
{
|
|
public:
|
|
std::future<Result> submit(Request request) override;
|
|
|
|
void wait() override {}
|
|
};
|
|
|
|
}
|