aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/filemap.cpp
diff options
context:
space:
mode:
authorAlexander Fokin <apfokin@gmail.com>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:38 +0300
commitbf9e69a933f89af083d895185f01ed65e4d90766 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/system/filemap.cpp
parent863a59a65247c24db7cb06789bc5cf79d04da32f (diff)
downloadydb-bf9e69a933f89af083d895185f01ed65e4d90766.tar.gz
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/filemap.cpp')
-rw-r--r--util/system/filemap.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/system/filemap.cpp b/util/system/filemap.cpp
index fe39f8525f..7454a4cb94 100644
--- a/util/system/filemap.cpp
+++ b/util/system/filemap.cpp
@@ -37,10 +37,10 @@
#undef PAGE_SIZE
#undef GRANULARITY
-#ifdef _win_
+#ifdef _win_
#define MAP_FAILED ((void*)(LONG_PTR)-1)
-#endif
-
+#endif
+
namespace {
struct TSysInfo {
inline TSysInfo()
@@ -136,8 +136,8 @@ public:
if (Mapping_ == nullptr) {
ythrow yexception() << "Can't create file mapping of '" << DbgName_ << "': " << LastSystemErrorText();
}
- } else {
- Mapping_ = MAP_FAILED;
+ } else {
+ Mapping_ = MAP_FAILED;
}
#elif defined(_unix_)
if (!(Mode_ & oNotGreedy)) {