aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/singleton.cpp
diff options
context:
space:
mode:
authorIlnur Khuziev <ilnur.khuziev@yandex.ru>2022-02-10 16:46:14 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:14 +0300
commit60040c91ffe701a84689b2c6310ff845e65cff42 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/generic/singleton.cpp
parent736dcd8ca259457a136f2f9f9168c44643914323 (diff)
downloadydb-60040c91ffe701a84689b2c6310ff845e65cff42.tar.gz
Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/singleton.cpp')
-rw-r--r--util/generic/singleton.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/generic/singleton.cpp b/util/generic/singleton.cpp
index 687b2b3f64..eb5a0662f8 100644
--- a/util/generic/singleton.cpp
+++ b/util/generic/singleton.cpp
@@ -2,7 +2,7 @@
#include <util/system/spinlock.h>
#include <util/system/thread.h>
-#include <util/system/sanitizers.h>
+#include <util/system/sanitizers.h>
#include <cstring>
@@ -32,12 +32,12 @@ void NPrivate::FillWithTrash(void* ptr, size_t len) {
Y_UNUSED(ptr);
Y_UNUSED(len);
#else
- if constexpr (NSan::TSanIsOn()) {
- Y_UNUSED(ptr);
- Y_UNUSED(len);
- } else {
- memset(ptr, 0xBA, len);
- }
+ if constexpr (NSan::TSanIsOn()) {
+ Y_UNUSED(ptr);
+ Y_UNUSED(len);
+ } else {
+ memset(ptr, 0xBA, len);
+ }
#endif
}