Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
dc897936
Commit
dc897936
authored
Aug 25, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed "string" values and use STR_VALUE instead
parent
00ca62f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
83 deletions
+72
-83
ndb/src/common/mgmcommon/ConfigInfo.cpp
ndb/src/common/mgmcommon/ConfigInfo.cpp
+72
-83
No files found.
ndb/src/common/mgmcommon/ConfigInfo.cpp
View file @
dc897936
...
@@ -22,10 +22,9 @@
...
@@ -22,10 +22,9 @@
#define MAX_LINE_LENGTH 255
#define MAX_LINE_LENGTH 255
#define KEY_INTERNAL 0
#define KEY_INTERNAL 0
#define MAX_INT_RNIL 0xfffffeff
#define RNIL_STRING "0xffffff00"
#define STR_VALUE(x) #x
#define MAX_INT_RNIL_STRING "0xfffffeff"
#define MAX_NODES_STRING "63"
/****************************************************************************
/****************************************************************************
* Section names
* Section names
...
@@ -306,7 +305,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -306,7 +305,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"0"
,
"0"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_SYS_CONFIG_GENERATION
,
CFG_SYS_CONFIG_GENERATION
,
...
@@ -318,7 +317,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -318,7 +317,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"0"
,
"0"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
/***************************************************************************
/***************************************************************************
* DB
* DB
...
@@ -367,7 +366,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -367,7 +366,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
MANDATORY
,
MANDATORY
,
"1"
,
"1"
,
MAX_NODES_STRING
},
STR_VALUE
(
MAX_NODES
)
},
{
{
KEY_INTERNAL
,
KEY_INTERNAL
,
...
@@ -379,7 +378,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -379,7 +378,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
UNDEFINED
,
UNDEFINED
,
"1"
,
"1"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_NO_REPLICAS
,
CFG_DB_NO_REPLICAS
,
...
@@ -403,7 +402,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -403,7 +402,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"1000"
,
"1000"
,
"32"
,
"32"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_NO_TABLES
,
CFG_DB_NO_TABLES
,
...
@@ -415,7 +414,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -415,7 +414,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"128"
,
"128"
,
"8"
,
"8"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_NO_INDEXES
,
CFG_DB_NO_INDEXES
,
...
@@ -427,7 +426,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -427,7 +426,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"128"
,
"128"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_NO_INDEX_OPS
,
CFG_DB_NO_INDEX_OPS
,
...
@@ -439,7 +438,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -439,7 +438,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"8K"
,
"8K"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
STR_VALUE
(
MAX_INT_RNIL
)
},
},
{
{
...
@@ -452,7 +451,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -452,7 +451,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"768"
,
"768"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_NO_TRIGGER_OPS
,
CFG_DB_NO_TRIGGER_OPS
,
...
@@ -464,7 +463,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -464,7 +463,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"4000"
,
"4000"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
KEY_INTERNAL
,
KEY_INTERNAL
,
...
@@ -487,7 +486,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -487,7 +486,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"25"
,
"25"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_MEMLOCK
,
CFG_DB_MEMLOCK
,
...
@@ -511,7 +510,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -511,7 +510,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"6000"
,
"6000"
,
"70"
,
"70"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_STOP_ON_ERROR
,
CFG_DB_STOP_ON_ERROR
,
...
@@ -547,7 +546,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -547,7 +546,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"32K"
,
"32K"
,
"32"
,
"32"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_NO_TRANSACTIONS
,
CFG_DB_NO_TRANSACTIONS
,
...
@@ -559,7 +558,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -559,7 +558,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"4096"
,
"4096"
,
"32"
,
"32"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_NO_SCANS
,
CFG_DB_NO_SCANS
,
...
@@ -583,7 +582,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -583,7 +582,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"1M"
,
"1M"
,
"1K"
,
"1K"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_INDEX_MEM
,
CFG_DB_INDEX_MEM
,
...
@@ -619,7 +618,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -619,7 +618,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"30000"
,
"30000"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_START_PARTITION_TIMEOUT
,
CFG_DB_START_PARTITION_TIMEOUT
,
...
@@ -631,7 +630,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -631,7 +630,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"60000"
,
"60000"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_START_FAILURE_TIMEOUT
,
CFG_DB_START_FAILURE_TIMEOUT
,
...
@@ -643,7 +642,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -643,7 +642,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"0"
,
"0"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_HEARTBEAT_INTERVAL
,
CFG_DB_HEARTBEAT_INTERVAL
,
...
@@ -655,7 +654,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -655,7 +654,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"1500"
,
"1500"
,
"10"
,
"10"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_API_HEARTBEAT_INTERVAL
,
CFG_DB_API_HEARTBEAT_INTERVAL
,
...
@@ -667,7 +666,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -667,7 +666,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"1500"
,
"1500"
,
"100"
,
"100"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_LCP_INTERVAL
,
CFG_DB_LCP_INTERVAL
,
...
@@ -703,7 +702,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -703,7 +702,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"8"
,
"8"
,
"1"
,
"1"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
KEY_INTERNAL
,
KEY_INTERNAL
,
...
@@ -728,7 +727,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -728,7 +727,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"1000"
,
"1000"
,
"1000"
,
"1000"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_TRANSACTION_INACTIVE_TIMEOUT
,
CFG_DB_TRANSACTION_INACTIVE_TIMEOUT
,
...
@@ -742,9 +741,9 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -742,9 +741,9 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
USED
,
ConfigInfo
::
USED
,
true
,
true
,
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
MAX_INT_RNIL_STRING
,
STR_VALUE
(
MAX_INT_RNIL
)
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_TRANSACTION_DEADLOCK_TIMEOUT
,
CFG_DB_TRANSACTION_DEADLOCK_TIMEOUT
,
...
@@ -759,7 +758,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -759,7 +758,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"1200"
,
"1200"
,
"50"
,
"50"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
KEY_INTERNAL
,
KEY_INTERNAL
,
...
@@ -771,7 +770,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -771,7 +770,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"40"
,
"40"
,
"1"
,
"1"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
KEY_INTERNAL
,
KEY_INTERNAL
,
...
@@ -783,7 +782,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -783,7 +782,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"40"
,
"40"
,
"1"
,
"1"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
KEY_INTERNAL
,
KEY_INTERNAL
,
...
@@ -795,7 +794,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -795,7 +794,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"20"
,
"20"
,
"1"
,
"1"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
KEY_INTERNAL
,
KEY_INTERNAL
,
...
@@ -807,7 +806,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -807,7 +806,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"20"
,
"20"
,
"1"
,
"1"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
...
@@ -846,7 +845,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -846,7 +845,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"3000"
,
"3000"
,
"10"
,
"10"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_FILESYSTEM_PATH
,
CFG_DB_FILESYSTEM_PATH
,
...
@@ -980,7 +979,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -980,7 +979,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"4M"
,
// sum of BackupDataBufferSize and BackupLogBufferSize
"4M"
,
// sum of BackupDataBufferSize and BackupLogBufferSize
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_BACKUP_DATA_BUFFER_MEM
,
CFG_DB_BACKUP_DATA_BUFFER_MEM
,
...
@@ -992,7 +991,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -992,7 +991,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"2M"
,
// remember to change BackupMemory
"2M"
,
// remember to change BackupMemory
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_BACKUP_LOG_BUFFER_MEM
,
CFG_DB_BACKUP_LOG_BUFFER_MEM
,
...
@@ -1004,7 +1003,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1004,7 +1003,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"2M"
,
// remember to change BackupMemory
"2M"
,
// remember to change BackupMemory
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_DB_BACKUP_WRITE_SIZE
,
CFG_DB_BACKUP_WRITE_SIZE
,
...
@@ -1016,7 +1015,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1016,7 +1015,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"32K"
,
"32K"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
/***************************************************************************
/***************************************************************************
* REP
* REP
...
@@ -1065,7 +1064,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1065,7 +1064,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
MANDATORY
,
MANDATORY
,
"1"
,
"1"
,
MAX_NODES_STRING
},
STR_VALUE
(
MAX_NODES
)
},
{
{
KEY_INTERNAL
,
KEY_INTERNAL
,
...
@@ -1088,7 +1087,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1088,7 +1087,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"3000"
,
"3000"
,
"100"
,
"100"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
/***************************************************************************
/***************************************************************************
* API
* API
...
@@ -1137,7 +1136,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1137,7 +1136,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
MANDATORY
,
MANDATORY
,
"1"
,
"1"
,
MAX_NODES_STRING
},
STR_VALUE
(
MAX_NODES
)
},
{
{
KEY_INTERNAL
,
KEY_INTERNAL
,
...
@@ -1172,7 +1171,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1172,7 +1171,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"0"
,
"0"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_MAX_SCAN_BATCH_SIZE
,
CFG_MAX_SCAN_BATCH_SIZE
,
...
@@ -1182,9 +1181,9 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1182,9 +1181,9 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
USED
,
ConfigInfo
::
USED
,
false
,
false
,
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
MAX_SCAN_BATCH_SIZE
,
STR_VALUE
(
MAX_SCAN_BATCH_SIZE
)
,
32768
,
"32k"
,
(
1024
*
1024
*
16
)
},
"16M"
},
{
{
CFG_BATCH_BYTE_SIZE
,
CFG_BATCH_BYTE_SIZE
,
...
@@ -1194,9 +1193,9 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1194,9 +1193,9 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
USED
,
ConfigInfo
::
USED
,
false
,
false
,
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
S
CAN_BATCH_SIZE
,
S
TR_VALUE
(
SCAN_BATCH_SIZE
)
,
1024
,
"1k"
,
(
1024
*
1024
)
},
"1M"
},
{
{
CFG_BATCH_SIZE
,
CFG_BATCH_SIZE
,
...
@@ -1206,9 +1205,9 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1206,9 +1205,9 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
USED
,
ConfigInfo
::
USED
,
false
,
false
,
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
DEF_BATCH_SIZE
,
STR_VALUE
(
DEF_BATCH_SIZE
)
,
1
,
"1"
,
MAX_PARALLEL_OP_PER_SCAN
},
STR_VALUE
(
MAX_PARALLEL_OP_PER_SCAN
)
},
/****************************************************************************
/****************************************************************************
* MGM
* MGM
...
@@ -1257,7 +1256,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1257,7 +1256,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
MANDATORY
,
MANDATORY
,
"1"
,
"1"
,
MAX_NODES_STRING
},
STR_VALUE
(
MAX_NODES
)
},
{
{
CFG_LOG_DESTINATION
,
CFG_LOG_DESTINATION
,
...
@@ -1291,7 +1290,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1291,7 +1290,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"100"
,
"100"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_MGM_PORT
,
CFG_MGM_PORT
,
...
@@ -1303,7 +1302,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1303,7 +1302,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
NDB_BASE_PORT
,
NDB_BASE_PORT
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
KEY_INTERNAL
,
KEY_INTERNAL
,
...
@@ -1315,7 +1314,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1315,7 +1314,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"2199"
,
"2199"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_NODE_ARBIT_RANK
,
CFG_NODE_ARBIT_RANK
,
...
@@ -1339,7 +1338,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1339,7 +1338,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"0"
,
"0"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
/****************************************************************************
/****************************************************************************
* TCP
* TCP
...
@@ -1435,7 +1434,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1435,7 +1434,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
MANDATORY
,
MANDATORY
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_TCP_SEND_BUFFER_SIZE
,
CFG_TCP_SEND_BUFFER_SIZE
,
...
@@ -1447,7 +1446,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1447,7 +1446,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"256K"
,
"256K"
,
"16K"
,
"16K"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_TCP_RECEIVE_BUFFER_SIZE
,
CFG_TCP_RECEIVE_BUFFER_SIZE
,
...
@@ -1459,7 +1458,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1459,7 +1458,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"64K"
,
"64K"
,
"16K"
,
"16K"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_TCP_PROXY
,
CFG_TCP_PROXY
,
...
@@ -1530,7 +1529,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1530,7 +1529,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
MANDATORY
,
MANDATORY
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_CONNECTION_NODE_2
,
CFG_CONNECTION_NODE_2
,
...
@@ -1578,7 +1577,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1578,7 +1577,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
MANDATORY
,
MANDATORY
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_SHM_BUFFER_MEM
,
CFG_SHM_BUFFER_MEM
,
...
@@ -1590,7 +1589,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1590,7 +1589,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"1M"
,
"1M"
,
"4K"
,
"4K"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_CONNECTION_NODE_1_SYSTEM
,
CFG_CONNECTION_NODE_1_SYSTEM
,
...
@@ -1639,7 +1638,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1639,7 +1638,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
MANDATORY
,
MANDATORY
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_CONNECTION_NODE_2
,
CFG_CONNECTION_NODE_2
,
...
@@ -1651,7 +1650,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1651,7 +1650,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
MANDATORY
,
MANDATORY
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_SCI_ID_0
,
CFG_SCI_ID_0
,
...
@@ -1663,7 +1662,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1663,7 +1662,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
MANDATORY
,
MANDATORY
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_SCI_ID_1
,
CFG_SCI_ID_1
,
...
@@ -1675,7 +1674,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1675,7 +1674,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
MANDATORY
,
MANDATORY
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_CONNECTION_SEND_SIGNAL_ID
,
CFG_CONNECTION_SEND_SIGNAL_ID
,
...
@@ -1711,7 +1710,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1711,7 +1710,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"2K"
,
"2K"
,
"512"
,
"512"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_SCI_BUFFER_MEM
,
CFG_SCI_BUFFER_MEM
,
...
@@ -1723,7 +1722,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1723,7 +1722,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"1M"
,
"1M"
,
"256K"
,
"256K"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_CONNECTION_NODE_1_SYSTEM
,
CFG_CONNECTION_NODE_1_SYSTEM
,
...
@@ -1794,7 +1793,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1794,7 +1793,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
MANDATORY
,
MANDATORY
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_CONNECTION_NODE_2
,
CFG_CONNECTION_NODE_2
,
...
@@ -1806,7 +1805,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1806,7 +1805,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
UNDEFINED
,
UNDEFINED
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_CONNECTION_SEND_SIGNAL_ID
,
CFG_CONNECTION_SEND_SIGNAL_ID
,
...
@@ -1842,7 +1841,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1842,7 +1841,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"1000"
,
"1000"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_OSE_PRIO_B_SIZE
,
CFG_OSE_PRIO_B_SIZE
,
...
@@ -1854,7 +1853,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1854,7 +1853,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"1000"
,
"1000"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_OSE_RECEIVE_ARRAY_SIZE
,
CFG_OSE_RECEIVE_ARRAY_SIZE
,
...
@@ -1866,7 +1865,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
...
@@ -1866,7 +1865,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo
::
INT
,
ConfigInfo
::
INT
,
"10"
,
"10"
,
"0"
,
"0"
,
MAX_INT_RNIL_STRING
},
STR_VALUE
(
MAX_INT_RNIL
)
},
{
{
CFG_CONNECTION_NODE_1_SYSTEM
,
CFG_CONNECTION_NODE_1_SYSTEM
,
...
@@ -1906,16 +1905,6 @@ ConfigInfo::ConfigInfo()
...
@@ -1906,16 +1905,6 @@ ConfigInfo::ConfigInfo()
Properties
*
section
;
Properties
*
section
;
const
Properties
*
oldpinfo
;
const
Properties
*
oldpinfo
;
{
Uint64
tmp_uint64
;
require
(
InitConfigFileParser
::
convertStringToUint64
(
RNIL_STRING
,
tmp_uint64
));
require
(
tmp_uint64
==
RNIL
);
require
(
InitConfigFileParser
::
convertStringToUint64
(
MAX_INT_RNIL_STRING
,
tmp_uint64
));
require
(
tmp_uint64
==
((
Uint64
)
RNIL
-
1
));
require
(
InitConfigFileParser
::
convertStringToUint64
(
MAX_NODES_STRING
,
tmp_uint64
));
require
(
tmp_uint64
==
(
MAX_NODES
-
1
));
}
for
(
i
=
0
;
i
<
m_NoOfParams
;
i
++
)
{
for
(
i
=
0
;
i
<
m_NoOfParams
;
i
++
)
{
const
ParamInfo
&
param
=
m_ParamInfo
[
i
];
const
ParamInfo
&
param
=
m_ParamInfo
[
i
];
Uint64
default_uint64
;
Uint64
default_uint64
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment