From c74011851acb5dfa14cfe00885370781d53be90f Mon Sep 17 00:00:00 2001 From: alexey-milovidov Date: Sat, 12 Dec 2020 04:58:07 +0300 Subject: [PATCH] Update HashTable.h --- src/Common/HashTable/HashTable.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Common/HashTable/HashTable.h b/src/Common/HashTable/HashTable.h index 5d5f2332329..c3fed54206e 100644 --- a/src/Common/HashTable/HashTable.h +++ b/src/Common/HashTable/HashTable.h @@ -1009,7 +1009,7 @@ public: /// The optimal position of the element in the cell at next_position size_t optimal_position = grower.place(buf[next_position].getHash(*this)); - + /// If position of this element is already optimal - proceed to the next element. if (optimal_position == next_position) continue; @@ -1030,7 +1030,7 @@ public: { continue; } - + /// The case of overlapping chain if (next_position < erased_key_position /// Cannot move this element because optimal position is after the freed place @@ -1038,7 +1038,7 @@ public: { continue; } - + /// Move the element to the freed place memcpy(static_cast(&buf[erased_key_position]), static_cast(&buf[next_position]), sizeof(Cell)); /// Now we have another freed place