aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/file.cpp
diff options
context:
space:
mode:
authorleo <leo@yandex-team.ru>2022-02-10 16:46:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:40 +0300
commit980edcd3304699edf9d4e4d6a656e585028e2a72 (patch)
tree139f47f3911484ae9af0eb347b1a88bd6c4bb35f /util/stream/file.cpp
parentb036a557f285146e5e35d4213e29a094ab907bcf (diff)
downloadydb-980edcd3304699edf9d4e4d6a656e585028e2a72.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream/file.cpp')
-rw-r--r--util/stream/file.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/stream/file.cpp b/util/stream/file.cpp
index dc5d2f6311..00b1827429 100644
--- a/util/stream/file.cpp
+++ b/util/stream/file.cpp
@@ -5,12 +5,12 @@
TUnbufferedFileInput::TUnbufferedFileInput(const TString& path)
: File_(path, OpenExisting | RdOnly | Seq)
-{
+{
if (!File_.IsOpen()) {
ythrow TIoException() << "file " << path << " not open";
- }
-}
-
+ }
+}
+
TUnbufferedFileInput::TUnbufferedFileInput(const TFile& file)
: File_(file)
{
@@ -80,7 +80,7 @@ public:
inline ~TImpl() = default;
};
-TMappedFileInput::TMappedFileInput(const TFile& file)
+TMappedFileInput::TMappedFileInput(const TFile& file)
: TMemoryInput(nullptr, 0)
, Impl_(new TImpl(file))
{
@@ -90,8 +90,8 @@ TMappedFileInput::TMappedFileInput(const TFile& file)
TMappedFileInput::TMappedFileInput(const TString& path)
: TMemoryInput(nullptr, 0)
, Impl_(new TImpl(TFile(path, OpenExisting | RdOnly)))
-{
+{
Reset(Impl_->Data(), Impl_->Size());
-}
-
+}
+
TMappedFileInput::~TMappedFileInput() = default;