1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

cleanup: const

This commit is contained in:
Nikita Malyavin
2020-03-12 14:14:55 +01:00
committed by Sergei Golubchik
parent b9df4d2a35
commit 6334b57621
5 changed files with 5 additions and 5 deletions

View File

@@ -1239,7 +1239,7 @@ public:
const Relay_log_info *rli,
const Conv_param &param)
const;
inline int cmp(const uchar *str) { return cmp(ptr,str); }
inline int cmp(const uchar *str) const { return cmp(ptr,str); }
virtual int cmp_max(const uchar *a, const uchar *b, uint max_len) const
{ return cmp(a, b); }
virtual int cmp(const uchar *,const uchar *) const=0;

View File

@@ -112,7 +112,7 @@ int find_ref_key(KEY *key, uint key_count, uchar *record, Field *field,
@param with_zerofill skipped bytes in the key buffer to be filled with 0
*/
void key_copy(uchar *to_key, const uchar *from_record, KEY *key_info,
void key_copy(uchar *to_key, const uchar *from_record, const KEY *key_info,
uint key_length, bool with_zerofill)
{
uint length;

View File

@@ -25,7 +25,7 @@ typedef struct st_key_part_info KEY_PART_INFO;
int find_ref_key(KEY *key, uint key_count, uchar *record, Field *field,
uint *key_length, uint *keypart);
void key_copy(uchar *to_key, const uchar *from_record, KEY *key_info,
void key_copy(uchar *to_key, const uchar *from_record, const KEY *key_info,
uint key_length, bool with_zerofill= FALSE);
void key_restore(uchar *to_record, const uchar *from_key, KEY *key_info,
uint key_length);

View File

@@ -1775,7 +1775,7 @@ class IS_table_read_plan;
constexpr uint frm_fieldno_size= 2;
static inline uint16 read_frm_fieldno(const uchar *data)
{ return uint2korr(data); }
static inline void store_frm_fieldno(const uchar *data, uint16 fieldno)
static inline void store_frm_fieldno(uchar *data, uint16 fieldno)
{ int2store(data, fieldno); }
class select_unit;

View File

@@ -2170,7 +2170,7 @@ int ha_cassandra::info(uint flag)
}
void key_copy(uchar *to_key, const uchar *from_record, KEY *key_info,
void key_copy(uchar *to_key, const uchar *from_record, const KEY *key_info,
uint key_length, bool with_zerofill);