aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory
diff options
context:
space:
mode:
authorsankear <sankear@yandex-team.ru>2022-02-10 16:50:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:10 +0300
commitaed1c1c7782eb0a0536e5b25bbed950b397e0ac8 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/memory
parent7377d7b033ffbef85e9bb0bf35091a8e79ed422c (diff)
downloadydb-aed1c1c7782eb0a0536e5b25bbed950b397e0ac8.tar.gz
Restoring authorship annotation for <sankear@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/memory')
-rw-r--r--util/memory/blob.cpp12
-rw-r--r--util/memory/blob.h12
2 files changed, 12 insertions, 12 deletions
diff --git a/util/memory/blob.cpp b/util/memory/blob.cpp
index d7656c2bac..91da5cadca 100644
--- a/util/memory/blob.cpp
+++ b/util/memory/blob.cpp
@@ -284,14 +284,14 @@ TBlob TBlob::LockedFromFile(const TFile& file) {
return ConstructAsMap<TAtomicCounter>(file, EMappingMode::Locked);
}
-TBlob TBlob::LockedFromMemoryMapSingleThreaded(const TMemoryMap& map, ui64 offset, size_t length) {
+TBlob TBlob::LockedFromMemoryMapSingleThreaded(const TMemoryMap& map, ui64 offset, size_t length) {
return ConstructFromMap<TSimpleCounter>(map, offset, length, EMappingMode::Locked);
-}
-
-TBlob TBlob::LockedFromMemoryMap(const TMemoryMap& map, ui64 offset, size_t length) {
+}
+
+TBlob TBlob::LockedFromMemoryMap(const TMemoryMap& map, ui64 offset, size_t length) {
return ConstructFromMap<TAtomicCounter>(map, offset, length, EMappingMode::Locked);
-}
-
+}
+
TBlob TBlob::FromMemoryMapSingleThreaded(const TMemoryMap& map, ui64 offset, size_t length) {
return ConstructFromMap<TSimpleCounter>(map, offset, length, EMappingMode::Standard);
}
diff --git a/util/memory/blob.h b/util/memory/blob.h
index 701a6d9070..20c02a68df 100644
--- a/util/memory/blob.h
+++ b/util/memory/blob.h
@@ -250,12 +250,12 @@ public:
/// Creates a locked blob with a multi-threaded (atomic) refcounter. It maps the file content as data.
static TBlob LockedFromFile(const TFile& file);
- /// Creates a locked blob with a single-threaded (non atomic) refcounter from the mapped memory.
- static TBlob LockedFromMemoryMapSingleThreaded(const TMemoryMap& map, ui64 offset, size_t length);
-
- /// Creates a locked blob with a multi-threaded (atomic) refcounter from the mapped memory.
- static TBlob LockedFromMemoryMap(const TMemoryMap& map, ui64 offset, size_t length);
-
+ /// Creates a locked blob with a single-threaded (non atomic) refcounter from the mapped memory.
+ static TBlob LockedFromMemoryMapSingleThreaded(const TMemoryMap& map, ui64 offset, size_t length);
+
+ /// Creates a locked blob with a multi-threaded (atomic) refcounter from the mapped memory.
+ static TBlob LockedFromMemoryMap(const TMemoryMap& map, ui64 offset, size_t length);
+
/// Creates a blob with a single-threaded (non atomic) refcounter from the mapped memory.
static TBlob FromMemoryMapSingleThreaded(const TMemoryMap& map, ui64 offset, size_t length);