aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/filemap.cpp
diff options
context:
space:
mode:
authorOleg Sidorkin <osidorkin@gmail.com>2022-02-10 16:49:36 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:36 +0300
commitf8f6804a3e352897afabc93afcb32081e3fca601 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/filemap.cpp
parent5ce74d4fee2d42a4b86efc02dfdc704d458760e1 (diff)
downloadydb-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.cpp14
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();
}