aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authorslesarev <slesarev@yandex-team.ru>2022-02-10 16:46:58 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:58 +0300
commit7aa53a76943e449d3889a4e711338deb819fcd1f (patch)
treecd9ae52eb78fb99744e972eaa26b9324c37e60f8 /util/system
parent28148f76dbfcc644d96427d41c92f36cbf2fdc6e (diff)
downloadydb-7aa53a76943e449d3889a4e711338deb819fcd1f.tar.gz
Restoring authorship annotation for <slesarev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system')
-rw-r--r--util/system/filemap.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/filemap.cpp b/util/system/filemap.cpp
index 7454a4cb94..7184f36ab0 100644
--- a/util/system/filemap.cpp
+++ b/util/system/filemap.cpp
@@ -139,7 +139,7 @@ public:
} else {
Mapping_ = MAP_FAILED;
}
-#elif defined(_unix_)
+#elif defined(_unix_)
if (!(Mode_ & oNotGreedy)) {
PtrStart_ = mmap((caddr_t) nullptr, Length_, ModeToMmapProt(Mode_), ModeToMmapFlags(Mode_), File_.GetHandle(), 0);
@@ -300,7 +300,7 @@ public:
void Evict() {
#if defined(_unix_)
-// Evict(PtrStart_, Length_);
+// Evict(PtrStart_, Length_);
#endif
}
@@ -310,7 +310,7 @@ public:
::CloseHandle(Mapping_); // != FALSE
Mapping_ = nullptr;
}
-#elif defined(_unix_)
+#elif defined(_unix_)
if (PtrStart_) {
munmap((caddr_t)PtrStart_, Length_);
}
@@ -341,7 +341,7 @@ private:
#if defined(_win_)
void* Mapping_;
-#elif defined(_unix_)
+#elif defined(_unix_)
void* PtrStart_;
#endif
};