aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/direct_io.h
diff options
context:
space:
mode:
authorswarmer <swarmer@yandex-team.com>2024-08-16 00:54:10 +0300
committerswarmer <swarmer@yandex-team.com>2024-08-16 01:04:35 +0300
commitc9c4ee3f77b019e9f14664f722d3bd240da6ddf9 (patch)
treee14641680a9a903ef1f6a04aad380f7d605d050e /util/stream/direct_io.h
parent83e432e997f044d72805caf673f53e3483b21362 (diff)
downloadydb-c9c4ee3f77b019e9f14664f722d3bd240da6ddf9.tar.gz
check the lifetime bounds of stream adapters
f4e1f5605822d2c05fd582aeb7104301b7ca73c7
Diffstat (limited to 'util/stream/direct_io.h')
-rw-r--r--util/stream/direct_io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/stream/direct_io.h b/util/stream/direct_io.h
index 2e1f2e07dd..66793c67ed 100644
--- a/util/stream/direct_io.h
+++ b/util/stream/direct_io.h
@@ -6,7 +6,7 @@
class TRandomAccessFileInput: public IInputStream {
public:
- TRandomAccessFileInput(TDirectIOBufferedFile& file, ui64 position);
+ TRandomAccessFileInput(TDirectIOBufferedFile& file Y_LIFETIME_BOUND, ui64 position);
protected:
size_t DoRead(void* buf, size_t len) override;
@@ -19,7 +19,7 @@ private:
class TRandomAccessFileOutput: public IOutputStream {
public:
- TRandomAccessFileOutput(TDirectIOBufferedFile& file);
+ TRandomAccessFileOutput(TDirectIOBufferedFile& file Y_LIFETIME_BOUND);
TRandomAccessFileOutput(TRandomAccessFileOutput&&) noexcept = default;
TRandomAccessFileOutput& operator=(TRandomAccessFileOutput&&) noexcept = default;