diff options
author | Oleg Sidorkin <osidorkin@gmail.com> | 2022-02-10 16:49:36 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:36 +0300 |
commit | f8f6804a3e352897afabc93afcb32081e3fca601 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/filemap.cpp | |
parent | 5ce74d4fee2d42a4b86efc02dfdc704d458760e1 (diff) | |
download | ydb-f8f6804a3e352897afabc93afcb32081e3fca601.tar.gz |
Restoring authorship annotation for Oleg Sidorkin <osidorkin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/filemap.cpp')
-rw-r--r-- | util/system/filemap.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/filemap.cpp b/util/system/filemap.cpp index b64e2d5314..7454a4cb94 100644 --- a/util/system/filemap.cpp +++ b/util/system/filemap.cpp @@ -214,10 +214,10 @@ public: ; } - inline bool IsWritable() const noexcept { + inline bool IsWritable() const noexcept { return (Mode_ & oRdWr || Mode_ & oCopyOnWr); - } - + } + inline TMapResult Map(i64 offset, size_t size) { assert(File_.IsOpen()); @@ -427,10 +427,10 @@ bool TMemoryMap::IsOpen() const noexcept { return Impl_->IsOpen(); } -bool TMemoryMap::IsWritable() const noexcept { - return Impl_->IsWritable(); -} - +bool TMemoryMap::IsWritable() const noexcept { + return Impl_->IsWritable(); +} + TMemoryMap::EOpenMode TMemoryMap::GetMode() const noexcept { return Impl_->GetMode(); } |