summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2020-03-09 00:29:48 +0300
committerSergei Petrunia <psergey@askmonty.org>2020-03-09 00:29:48 +0300
commitee6c668f24c4e9e49b742b8a2bcaac4ac2298ac0 (patch)
tree8fcb7084de88108ee8e0066b18bbcaa495b517e2 /sql/sql_class.h
parent0c35e80dc9ff24bcb8e710cb8cb16428c8c9986f (diff)
downloadmariadb-git-10.5-mdev21784-reg1-vfuncs.tar.gz
MDEV-21784: Performance testing for packed sort keys10.5-mdev21784-reg1-vfuncs
A piece of cumulative patch for MDEV-21580 Allow packed sort keys in sort buffer which just adds some virtual functions (without any calls to them)
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 13b2659789d..fce35bff2f5 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -6255,6 +6255,11 @@ struct SORT_FIELD_ATTR
{
uint length; /* Length of sort field */
uint suffix_length; /* Length suffix (0-4) */
+ /* Max. length of the original value, in bytes */
+ uint original_length;
+
+ uint pack_sort_string(uchar *to, const LEX_CSTRING &str,
+ CHARSET_INFO *cs) const;
};