mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Small fixes.
This commit is contained in:

parent
8d3036c35e
commit
aa08fd0d0a
@ -280,7 +280,7 @@ enum loglevel {
|
|||||||
|
|
||||||
enum cache_type
|
enum cache_type
|
||||||
{
|
{
|
||||||
TYPE_NOT_SET, READ_CACHE, WRITE_CACHE,
|
TYPE_NOT_SET= 0, READ_CACHE, WRITE_CACHE,
|
||||||
SEQ_READ_APPEND /* sequential read or append */,
|
SEQ_READ_APPEND /* sequential read or append */,
|
||||||
READ_FIFO, READ_NET,WRITE_NET};
|
READ_FIFO, READ_NET,WRITE_NET};
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ int net_send_error(struct st_net *net, uint sql_errno)
|
|||||||
MYSQL_ERRMSG_SIZE]; // message
|
MYSQL_ERRMSG_SIZE]; // message
|
||||||
char *pos= buff;
|
char *pos= buff;
|
||||||
|
|
||||||
int ERROR_PACKET_CODE= 255;
|
const int ERROR_PACKET_CODE= 255;
|
||||||
*pos++= ERROR_PACKET_CODE;
|
*pos++= ERROR_PACKET_CODE;
|
||||||
int2store(pos, sql_errno);
|
int2store(pos, sql_errno);
|
||||||
pos+= 2;
|
pos+= 2;
|
||||||
@ -95,7 +95,7 @@ int net_send_error_323(struct st_net *net, uint sql_errno)
|
|||||||
MYSQL_ERRMSG_SIZE]; // message
|
MYSQL_ERRMSG_SIZE]; // message
|
||||||
char *pos= buff;
|
char *pos= buff;
|
||||||
|
|
||||||
int ERROR_PACKET_CODE= 255;
|
const int ERROR_PACKET_CODE= 255;
|
||||||
*pos++= ERROR_PACKET_CODE;
|
*pos++= ERROR_PACKET_CODE;
|
||||||
int2store(pos, sql_errno);
|
int2store(pos, sql_errno);
|
||||||
pos+= 2;
|
pos+= 2;
|
||||||
|
Reference in New Issue
Block a user