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
commit3196904c9f5bf7aff7374eeadcb0671589581f61 (patch)
treed13114a178799aeb203a4b3b43dd7fb0c4f6975f /util/generic/hash.h
parentd154d11651ea533127249184148c3f023e2c6d0a (diff)
downloadydb-3196904c9f5bf7aff7374eeadcb0671589581f61.tar.gz
Restoring authorship annotation for <alex-sh@yandex-team.ru>. Commit 1 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 e46db21fa9..ef3aae78e7 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;
}