diff options
author | Andrey Khalyavin <halyavin@gmail.com> | 2022-02-10 16:46:29 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:29 +0300 |
commit | f773626848a7c7456803654292e716b83d69cc12 (patch) | |
tree | db052dfcf9134f492bdbb962cb6c16cea58e1ed3 /util/system/filemap.cpp | |
parent | f43ab775d197d300eb67bd4497632b909cd7c2a5 (diff) | |
download | ydb-f773626848a7c7456803654292e716b83d69cc12.tar.gz |
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/system/filemap.cpp')
-rw-r--r-- | util/system/filemap.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/filemap.cpp b/util/system/filemap.cpp index 7454a4cb94..2c2ce82436 100644 --- a/util/system/filemap.cpp +++ b/util/system/filemap.cpp @@ -106,7 +106,7 @@ static int ModeToMmapProt(TMemoryMapCommon::EOpenMode mode) { void NPrivate::Precharge(const void* data, size_t dataSize, size_t off, size_t size) { if (off > dataSize) { assert(false); - return; + return; } size_t endOff = (size == (size_t)-1 ? dataSize : off + size); if (endOff > dataSize) { @@ -115,12 +115,12 @@ void NPrivate::Precharge(const void* data, size_t dataSize, size_t off, size_t s } size = endOff - off; if (dataSize == 0 || size == 0) { - return; + return; } volatile const char *c = (const char*)data + off, *e = c + size; for (; c < e; c += 512) { - *c; + *c; } } @@ -525,7 +525,7 @@ TFileMap::~TFileMap() { } } -void TFileMap::Precharge(size_t pos, size_t size) const { +void TFileMap::Precharge(size_t pos, size_t size) const { NPrivate::Precharge(Ptr(), MappedSize(), pos, size); } |