summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2023-01-31 09:57:52 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2023-01-31 09:57:52 +0100
commit638625278e7cadf42633e6f9d1b663ca1e3e1bb1 (patch)
tree8c93d8a33713abff96d229e96828870a53d0a5a0 /plugin
parentfa543a0f621fcf19e31c7d044f2b6c4f0836cd5a (diff)
parentb923b80cfd8628ef973019bf3dba76dda8d940c4 (diff)
downloadmariadb-git-638625278e7cadf42633e6f9d1b663ca1e3e1bb1.tar.gz
Merge branch '10.7' into 10.8
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