diff options
author | Alexey Salmin <alexey.salmin@gmail.com> | 2022-02-10 16:49:37 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:37 +0300 |
commit | 3c5b1607b38f637d2f3313791ed25c2e080d2647 (patch) | |
tree | 99be7b96e7c66612fbca94331100ef3b5fedcb88 /library/cpp/balloc/malloc-info.cpp | |
parent | de89752358147d7b25ef59a85b431bb564068a49 (diff) | |
download | ydb-3c5b1607b38f637d2f3313791ed25c2e080d2647.tar.gz |
Restoring authorship annotation for Alexey Salmin <alexey.salmin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/balloc/malloc-info.cpp')
-rw-r--r-- | library/cpp/balloc/malloc-info.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/balloc/malloc-info.cpp b/library/cpp/balloc/malloc-info.cpp index 604b1fb145..2fcebf7f81 100644 --- a/library/cpp/balloc/malloc-info.cpp +++ b/library/cpp/balloc/malloc-info.cpp @@ -5,18 +5,18 @@ using namespace NMalloc; extern "C" void DisableBalloc(); -extern "C" void EnableBalloc(); +extern "C" void EnableBalloc(); extern "C" bool BallocDisabled(); namespace { bool SetAllocParam(const char* name, const char* value) { if (strcmp(name, "disable") == 0) { if (value == nullptr || strcmp(value, "false") != 0) { - // all values other than "false" are considred to be "true" for compatibility - DisableBalloc(); - } else { - EnableBalloc(); - } + // all values other than "false" are considred to be "true" for compatibility + DisableBalloc(); + } else { + EnableBalloc(); + } return true; } return false; |