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 /library/cpp/deprecated/mapped_file | |
parent | f43ab775d197d300eb67bd4497632b909cd7c2a5 (diff) | |
download | ydb-f773626848a7c7456803654292e716b83d69cc12.tar.gz |
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/deprecated/mapped_file')
-rw-r--r-- | library/cpp/deprecated/mapped_file/mapped_file.cpp | 6 | ||||
-rw-r--r-- | library/cpp/deprecated/mapped_file/mapped_file.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/deprecated/mapped_file/mapped_file.cpp b/library/cpp/deprecated/mapped_file/mapped_file.cpp index b0e4511299..e352d7952b 100644 --- a/library/cpp/deprecated/mapped_file/mapped_file.cpp +++ b/library/cpp/deprecated/mapped_file/mapped_file.cpp @@ -20,11 +20,11 @@ TMappedFile::TMappedFile(const TFile& file, TFileMap::EOpenMode om, const char* init(file, om, dbgName); } -void TMappedFile::precharge(size_t off, size_t size) const { +void TMappedFile::precharge(size_t off, size_t size) const { if (!Map_) - return; + return; - Map_->Precharge(off, size); + Map_->Precharge(off, size); } void TMappedFile::init(const TString& name) { diff --git a/library/cpp/deprecated/mapped_file/mapped_file.h b/library/cpp/deprecated/mapped_file/mapped_file.h index 45859ed65a..bf7881a60d 100644 --- a/library/cpp/deprecated/mapped_file/mapped_file.h +++ b/library/cpp/deprecated/mapped_file/mapped_file.h @@ -64,7 +64,7 @@ public: return (Map_ ? (void*)((unsigned char*)Map_->Ptr() + pos) : nullptr); } - void precharge(size_t pos = 0, size_t size = (size_t)-1) const; + void precharge(size_t pos = 0, size_t size = (size_t)-1) const; void swap(TMappedFile& file) noexcept { DoSwap(Map_, file.Map_); |