summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2023-01-31 10:37:31 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2023-01-31 10:37:31 +0100
commitde2d08994255739d53ba28ea34288ca8352029b1 (patch)
treecc557fe9fa3655a03cae9b6895c6e8a0348b2f86 /plugin
parent4d9fe4032b768e04e33482d83199882c7bb0d9d8 (diff)
parent638625278e7cadf42633e6f9d1b663ca1e3e1bb1 (diff)
downloadmariadb-git-de2d08994255739d53ba28ea34288ca8352029b1.tar.gz
Merge branch '10.8' into 10.9
Diffstat (limited to 'plugin')
-rw-r--r--plugin/type_uuid/sql_type_uuid.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugin/type_uuid/sql_type_uuid.h b/plugin/type_uuid/sql_type_uuid.h
index be9fea8ebc9..ee39f542f05 100644
--- a/plugin/type_uuid/sql_type_uuid.h
+++ b/plugin/type_uuid/sql_type_uuid.h
@@ -64,9 +64,9 @@ public:
{
return memcmp(a + m_memory_pos, b + m_memory_pos, m_length);
}
- void hash_record(const uchar *ptr, ulong *nr, ulong *nr2) const
+ void hash_record(const uchar *ptr, Hasher *hasher) const
{
- my_charset_bin.hash_sort(ptr + m_record_pos, m_length, nr, nr2);
+ hasher->add(&my_charset_bin, ptr + m_record_pos, m_length);
}
};
@@ -119,13 +119,13 @@ public:
put values into the same partition.
*/
- static void hash_record(const uchar *ptr, ulong *nr, ulong *nr2)
+ static void hash_record(const uchar *ptr, Hasher *hasher)
{
- segment(0).hash_record(ptr, nr, nr2);
- segment(1).hash_record(ptr, nr, nr2);
- segment(2).hash_record(ptr, nr, nr2);
- segment(3).hash_record(ptr, nr, nr2);
- segment(4).hash_record(ptr, nr, nr2);
+ segment(0).hash_record(ptr, hasher);
+ segment(1).hash_record(ptr, hasher);
+ segment(2).hash_record(ptr, hasher);
+ segment(3).hash_record(ptr, hasher);
+ segment(4).hash_record(ptr, hasher);
}
// Compare two in-memory values