aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/filemap.h
diff options
context:
space:
mode:
authorMichael Roizner <mroizner@gmail.com>2022-02-10 16:50:47 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:47 +0300
commita196186fa7feb0aae6d87e1b6d890a83851be4f2 (patch)
tree61e98254be4ff3994306dd6c57a3b1d7c027a9c3 /util/system/filemap.h
parent40f16eaadf04f8fe775e16658c8d89ed6a29b2ee (diff)
downloadydb-a196186fa7feb0aae6d87e1b6d890a83851be4f2.tar.gz
Restoring authorship annotation for Michael Roizner <mroizner@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/system/filemap.h')
-rw-r--r--util/system/filemap.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/filemap.h b/util/system/filemap.h
index 11be64bff4..0016d4f9e5 100644
--- a/util/system/filemap.h
+++ b/util/system/filemap.h
@@ -129,15 +129,15 @@ public:
void Flush() {
Flush(Ptr(), MappedSize());
}
-
+
void FlushAsync(void* ptr, size_t size) {
Flush(ptr, size, false);
}
-
+
void FlushAsync() {
FlushAsync(Ptr(), MappedSize());
}
-
+
inline i64 Length() const noexcept {
return Map_.Length();
}
@@ -178,7 +178,7 @@ public:
private:
void Flush(void* ptr, size_t size, bool sync);
-
+
TMemoryMap Map_;
TMapResult Region_;
};