mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
cleanup: const
This commit is contained in:
committed by
Sergei Golubchik
parent
b9df4d2a35
commit
6334b57621
@@ -1239,7 +1239,7 @@ public:
|
||||
const Relay_log_info *rli,
|
||||
const Conv_param ¶m)
|
||||
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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user