aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/deprecated/mapped_file
diff options
context:
space:
mode:
authorAndrey Khalyavin <halyavin@gmail.com>2022-02-10 16:46:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:30 +0300
commit4b839d0704ee9be1dabb0310a1f03af24963637b (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/deprecated/mapped_file
parentf773626848a7c7456803654292e716b83d69cc12 (diff)
downloadydb-4b839d0704ee9be1dabb0310a1f03af24963637b.tar.gz
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/deprecated/mapped_file')
-rw-r--r--library/cpp/deprecated/mapped_file/mapped_file.cpp6
-rw-r--r--library/cpp/deprecated/mapped_file/mapped_file.h2
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 e352d7952b..b0e4511299 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 bf7881a60d..45859ed65a 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_);