You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2023/04/24 00:37:01 UTC
[doris] branch master updated: [fix](fixed_hashtable) The incorrect implementation of copy constructor (#18921)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 0c95d760fe [fix](fixed_hashtable) The incorrect implementation of copy constructor (#18921)
0c95d760fe is described below
commit 0c95d760fe3aaf671c68ca186005b98d35901ca5
Author: Jerry Hu <mr...@gmail.com>
AuthorDate: Mon Apr 24 08:36:52 2023 +0800
[fix](fixed_hashtable) The incorrect implementation of copy constructor (#18921)
---
be/src/vec/common/hash_table/fixed_hash_table.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/vec/common/hash_table/fixed_hash_table.h b/be/src/vec/common/hash_table/fixed_hash_table.h
index 962beada45..310857afa8 100644
--- a/be/src/vec/common/hash_table/fixed_hash_table.h
+++ b/be/src/vec/common/hash_table/fixed_hash_table.h
@@ -200,8 +200,9 @@ public:
destroy_elements();
free();
+ const auto new_size = rhs.size();
std::swap(buf, rhs.buf);
- this->set_size(rhs.size());
+ this->set_size(new_size);
Allocator::operator=(std::move(rhs));
Cell::State::operator=(std::move(rhs));
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org