aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/singleton.cpp
diff options
context:
space:
mode:
authorIlnur Khuziev <ilnur.khuziev@yandex.ru>2022-02-10 16:46:13 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:13 +0300
commit736dcd8ca259457a136f2f9f9168c44643914323 (patch)
treeddd46a036d68bfa83aa11b892f31243ea6b068a1 /util/generic/singleton.cpp
parent9bf2fa2b060c9881d3135c2208c624a1dd546ecc (diff)
downloadydb-736dcd8ca259457a136f2f9f9168c44643914323.tar.gz
Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. Commit 1 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 eb5a0662f8..687b2b3f64 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
}