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
commit7377d7b033ffbef85e9bb0bf35091a8e79ed422c (patch)
treefca7665beced1b829e5ab628094d3721a66c1001 /util/memory
parentf054f783b50cf93fa12c0cc6375769c21f3fd27e (diff)
downloadydb-7377d7b033ffbef85e9bb0bf35091a8e79ed422c.tar.gz
Restoring authorship annotation for <sankear@yandex-team.ru>. Commit 1 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 91da5cadca..d7656c2bac 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 20c02a68df..701a6d9070 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);