mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
Merge perch.ndb.mysql.com:/home/jonas/src/51-work
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
This commit is contained in:
commit
9c9399011e
3 changed files with 17 additions and 3 deletions
|
@ -64,6 +64,7 @@
|
|||
#define CFG_DB_BACKUP_DATA_BUFFER_MEM 134
|
||||
#define CFG_DB_BACKUP_LOG_BUFFER_MEM 135
|
||||
#define CFG_DB_BACKUP_WRITE_SIZE 136
|
||||
#define CFG_DB_BACKUP_MAX_WRITE_SIZE 139
|
||||
|
||||
#define CFG_LOG_DESTINATION 147
|
||||
|
||||
|
|
|
@ -163,15 +163,16 @@ Backup::execREAD_CONFIG_REQ(Signal* signal)
|
|||
|
||||
Uint32 szDataBuf = (2 * 1024 * 1024);
|
||||
Uint32 szLogBuf = (2 * 1024 * 1024);
|
||||
Uint32 szWrite = 32768;
|
||||
Uint32 szWrite = 32768, maxWriteSize = (256 * 1024);
|
||||
ndb_mgm_get_int_parameter(p, CFG_DB_BACKUP_DATA_BUFFER_MEM, &szDataBuf);
|
||||
ndb_mgm_get_int_parameter(p, CFG_DB_BACKUP_LOG_BUFFER_MEM, &szLogBuf);
|
||||
ndb_mgm_get_int_parameter(p, CFG_DB_BACKUP_WRITE_SIZE, &szWrite);
|
||||
ndb_mgm_get_int_parameter(p, CFG_DB_BACKUP_MAX_WRITE_SIZE, &maxWriteSize);
|
||||
|
||||
c_defaults.m_logBufferSize = szLogBuf;
|
||||
c_defaults.m_dataBufferSize = szDataBuf;
|
||||
c_defaults.m_minWriteSize = szWrite;
|
||||
c_defaults.m_maxWriteSize = 256*1024;
|
||||
c_defaults.m_maxWriteSize = maxWriteSize;
|
||||
c_defaults.m_lcp_buffer_size = szDataBuf;
|
||||
|
||||
|
||||
|
|
|
@ -1235,7 +1235,19 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
|
|||
false,
|
||||
ConfigInfo::CI_INT,
|
||||
"32K",
|
||||
"0",
|
||||
"2K",
|
||||
STR_VALUE(MAX_INT_RNIL) },
|
||||
|
||||
{
|
||||
CFG_DB_BACKUP_MAX_WRITE_SIZE,
|
||||
"BackupMaxWriteSize",
|
||||
DB_TOKEN,
|
||||
"Max size of filesystem writes made by backup (in bytes)",
|
||||
ConfigInfo::CI_USED,
|
||||
false,
|
||||
ConfigInfo::CI_INT,
|
||||
"256K",
|
||||
"2K",
|
||||
STR_VALUE(MAX_INT_RNIL) },
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue