aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/hash.cpp
diff options
context:
space:
mode:
authorpozhilov <pozhilov@yandex-team.ru>2022-02-10 16:49:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:27 +0300
commit23bf1d16dddf213a6aa8e8d5c8621e1242a1f118 (patch)
treeed030ff443eb83431f11e53b6460b1b73d035412 /util/generic/hash.cpp
parent7156b3713e77ce36387436e5558320917698b7a2 (diff)
downloadydb-23bf1d16dddf213a6aa8e8d5c8621e1242a1f118.tar.gz
Restoring authorship annotation for <pozhilov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/hash.cpp')
-rw-r--r--util/generic/hash.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/generic/hash.cpp b/util/generic/hash.cpp
index a674ee4538..bbc922072e 100644
--- a/util/generic/hash.cpp
+++ b/util/generic/hash.cpp
@@ -1,18 +1,18 @@
#include "hash.h"
-#include <util/string/escape.h>
+#include <util/string/escape.h>
#include <util/string/cast.h>
const void* const _yhashtable_empty_data[] = {(void*)3, nullptr, (void*)1};
-
+
TString NPrivate::MapKeyToString(TStringBuf key) {
- constexpr size_t HASH_KEY_MAX_LENGTH = 500;
- try {
- return EscapeC(key.substr(0, HASH_KEY_MAX_LENGTH));
- } catch (...) {
+ constexpr size_t HASH_KEY_MAX_LENGTH = 500;
+ try {
+ return EscapeC(key.substr(0, HASH_KEY_MAX_LENGTH));
+ } catch (...) {
return "TStringBuf";
- }
-}
+ }
+}
TString NPrivate::MapKeyToString(unsigned short key) {
return ToString(key);