mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Fixed some cache variables that could be set to higher value than what the code supported (size_t)
Fixed some cases that didn't work with > 4G buffers. Fixed compiler warnings include/mysql_com.h: Avoid compiler warning with strncmp() sql-common/client.c: Fixed long comment; Added () sql/filesort.cc: Fix code to get filesort to work with big buffers sql/sys_vars.cc: Fixed some cache variables that could be set to higher value than the size_t Limit query cache to ULONG_MAX as the query cache buffer variables are ulong storage/federatedx/ha_federatedx.cc: Remove not used variable storage/maria/ha_maria.cc: Fix that bulk_insert() works with big buffers storage/maria/ma_write.c: Fix that bulk_insert() works with big buffers storage/myisam/ha_myisam.cc: Fix that bulk_insert() works with big buffers storage/myisam/mi_write.c: Fix that bulk_insert() works with big buffers storage/sphinx/snippets_udf.cc: Fixed compiler warnings
This commit is contained in:
@@ -180,7 +180,7 @@ enum
|
||||
#define SPHINXSE_DEFAULT_SCHEME "sphinx"
|
||||
#define SPHINXSE_DEFAULT_HOST "127.0.0.1"
|
||||
#define SPHINXSE_DEFAULT_PORT 9312
|
||||
#define SPHINXSE_DEFAULT_INDEX "*"
|
||||
#define SPHINXSE_DEFAULT_INDEX (char*) "*"
|
||||
|
||||
class CSphBuffer
|
||||
{
|
||||
@@ -244,9 +244,9 @@ struct CSphUrl
|
||||
char * m_sBuffer;
|
||||
char * m_sFormatted;
|
||||
|
||||
char * m_sScheme;
|
||||
const char * m_sScheme;
|
||||
char * m_sHost;
|
||||
char * m_sIndex;
|
||||
char * m_sIndex;
|
||||
|
||||
int m_iPort;
|
||||
|
||||
@@ -254,7 +254,7 @@ struct CSphUrl
|
||||
: m_sBuffer ( NULL )
|
||||
, m_sFormatted ( NULL )
|
||||
, m_sScheme ( SPHINXSE_DEFAULT_SCHEME )
|
||||
, m_sHost ( SPHINXSE_DEFAULT_HOST )
|
||||
, m_sHost ( (char*) SPHINXSE_DEFAULT_HOST )
|
||||
, m_sIndex ( SPHINXSE_DEFAULT_INDEX )
|
||||
, m_iPort ( SPHINXSE_DEFAULT_PORT )
|
||||
{}
|
||||
@@ -446,7 +446,7 @@ int CSphUrl::Connect()
|
||||
uint uServerVersion;
|
||||
uint uClientVersion = htonl ( SPHINX_SEARCHD_PROTO );
|
||||
int iSocket = -1;
|
||||
char * pError = NULL;
|
||||
const char * pError = NULL;
|
||||
do
|
||||
{
|
||||
iSocket = socket ( iDomain, SOCK_STREAM, 0 );
|
||||
|
Reference in New Issue
Block a user