aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/hash.h
diff options
context:
space:
mode:
authoralex-sh <alex-sh@yandex-team.ru>2022-02-10 16:50:03 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:03 +0300
commit88ee78b1a163eaddee7e880ac73943456040fce0 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/hash.h
parent3196904c9f5bf7aff7374eeadcb0671589581f61 (diff)
downloadydb-88ee78b1a163eaddee7e880ac73943456040fce0.tar.gz
Restoring authorship annotation for <alex-sh@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/hash.h')
-rw-r--r--util/generic/hash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/generic/hash.h b/util/generic/hash.h
index ef3aae78e7..e46db21fa9 100644
--- a/util/generic/hash.h
+++ b/util/generic/hash.h
@@ -1345,7 +1345,7 @@ void THashTable<V, K, HF, Ex, Eq, A>::basic_clear() {
if (!num_elements) {
return;
}
-
+
node** first = buckets.begin();
node** last = buckets.end();
for (; first < last; ++first) {
@@ -1358,7 +1358,7 @@ void THashTable<V, K, HF, Ex, Eq, A>::basic_clear() {
}
*first = nullptr;
}
- }
+ }
num_elements = 0;
}