Commit 6334b576 authored by Nikita Malyavin's avatar Nikita Malyavin Committed by Sergei Golubchik

cleanup: const

parent b9df4d2a
......@@ -1239,7 +1239,7 @@ class Field: public Value_source
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;
......
......@@ -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;
......
......@@ -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);
......
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment