aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorponasenko-rs <ponasenko-rs@yandex-team.com>2024-09-23 11:42:50 +0300
committerponasenko-rs <ponasenko-rs@yandex-team.com>2024-09-23 11:54:51 +0300
commitcf44a2f71e545d16c80a85c962c82346179443e6 (patch)
tree0afb805b0d964e416fd1d68aceffdb56f01c9597
parent3d1f648a83b3d3482fa5df8f1cfe2b0a89261784 (diff)
downloadydb-cf44a2f71e545d16c80a85c962c82346179443e6.tar.gz
Fix typo in library/cpp/yt/memory
commit_hash:7b3f45fc7a89f88cb3f5609ab96fe1951290bfa4
-rw-r--r--library/cpp/yt/memory/blob.cpp4
-rw-r--r--library/cpp/yt/memory/blob.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/yt/memory/blob.cpp b/library/cpp/yt/memory/blob.cpp
index 9c17cffad0..260cfb698b 100644
--- a/library/cpp/yt/memory/blob.cpp
+++ b/library/cpp/yt/memory/blob.cpp
@@ -14,7 +14,7 @@ static constexpr double BlobCapacityMultiplier = 1.5;
TBlob::TBlob(
TRefCountedTypeCookie tagCookie,
size_t size,
- bool initiailizeStorage,
+ bool initializeStorage,
bool pageAligned)
: PageAligned_(pageAligned)
{
@@ -24,7 +24,7 @@ TBlob::TBlob(
} else {
Allocate(std::max(size, InitialBlobCapacity));
Size_ = size;
- if (initiailizeStorage) {
+ if (initializeStorage) {
::memset(Begin_, 0, Size_);
}
}
diff --git a/library/cpp/yt/memory/blob.h b/library/cpp/yt/memory/blob.h
index 42cab83017..a14ac742b2 100644
--- a/library/cpp/yt/memory/blob.h
+++ b/library/cpp/yt/memory/blob.h
@@ -26,7 +26,7 @@ public:
explicit TBlob(
TRefCountedTypeCookie tagCookie = GetRefCountedTypeCookie<TDefaultBlobTag>(),
size_t size = 0,
- bool initiailizeStorage = true,
+ bool initializeStorage = true,
bool pageAligned = false);
//! Copies a chunk of memory into a new instance.