aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/deprecated/mapped_file/mapped_file.h
diff options
context:
space:
mode:
authorleo <leo@yandex-team.ru>2022-02-10 16:46:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:40 +0300
commit99609724f661f7e21d1cb08e8d80e87c3632fdb3 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/deprecated/mapped_file/mapped_file.h
parent980edcd3304699edf9d4e4d6a656e585028e2a72 (diff)
downloadydb-99609724f661f7e21d1cb08e8d80e87c3632fdb3.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/deprecated/mapped_file/mapped_file.h')
-rw-r--r--library/cpp/deprecated/mapped_file/mapped_file.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/deprecated/mapped_file/mapped_file.h b/library/cpp/deprecated/mapped_file/mapped_file.h
index 4da8aacf55..45859ed65a 100644
--- a/library/cpp/deprecated/mapped_file/mapped_file.h
+++ b/library/cpp/deprecated/mapped_file/mapped_file.h
@@ -4,7 +4,7 @@
#include <util/generic/ptr.h>
#include <util/generic/string.h>
#include <util/generic/utility.h>
-#include <util/generic/yexception.h>
+#include <util/generic/yexception.h>
#include <util/system/align.h>
#include <util/system/file.h>
#include <util/system/filemap.h>
@@ -15,25 +15,25 @@
/// Deprecated (by pg@), use TFileMap or TMemoryMap instead
class TMappedFile {
-private:
+private:
TFileMap* Map_;
private:
TMappedFile(TFileMap* map, const char* dbgName);
-public:
+public:
TMappedFile() {
Map_ = nullptr;
- }
+ }
~TMappedFile() {
- term();
- }
+ term();
+ }
explicit TMappedFile(const TString& name) {
Map_ = nullptr;
init(name, TFileMap::oRdOnly);
- }
+ }
TMappedFile(const TFile& file, TFileMap::EOpenMode om = TFileMap::oRdOnly, const char* dbgName = "unknown");
@@ -52,8 +52,8 @@ public:
Map_->Unmap();
delete Map_;
Map_ = nullptr;
- }
- }
+ }
+ }
size_t getSize() const {
return (Map_ ? Map_->MappedSize() : 0);
@@ -69,4 +69,4 @@ public:
void swap(TMappedFile& file) noexcept {
DoSwap(Map_, file.Map_);
}
-};
+};