aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/IO/SynchronousReader.h
blob: 238d6e9371eff2baf56b8ea44442d841ff1260de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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 {}
};

}