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
commit4e10711f67db90b5b08220fee274f8f0fe620485 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/filemap.h
parenta196186fa7feb0aae6d87e1b6d890a83851be4f2 (diff)
downloadydb-4e10711f67db90b5b08220fee274f8f0fe620485.tar.gz
Restoring authorship annotation for Michael Roizner <mroizner@gmail.com>. Commit 2 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 0016d4f9e5..11be64bff4 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_;
};