@@ -97,7 +97,7 @@ static bool checkTCPConstraints(InitConfigFileParser::Context &, const char *);
97
97
static bool fixNodeHostname (InitConfigFileParser::Context & ctx, const char * data);
98
98
static bool fixHostname (InitConfigFileParser::Context & ctx, const char * data);
99
99
static bool fixNodeId (InitConfigFileParser::Context & ctx, const char * data);
100
- static bool fixDepricated (InitConfigFileParser::Context & ctx, const char *);
100
+ static bool fixDeprecated (InitConfigFileParser::Context & ctx, const char *);
101
101
static bool fixFileSystemPath (InitConfigFileParser::Context & ctx, const char * data);
102
102
static bool fixBackupDataDir (InitConfigFileParser::Context & ctx, const char * data);
103
103
static bool fixShmUniqueId (InitConfigFileParser::Context & ctx, const char * data);
@@ -152,7 +152,7 @@ ConfigInfo::m_SectionRules[] = {
152
152
{ " SCI" , fixPortNumber, 0 }, // has to come after fixHostName
153
153
154
154
{ " *" , applyDefaultValues, " user" },
155
- { " *" , fixDepricated , 0 },
155
+ { " *" , fixDeprecated , 0 },
156
156
{ " *" , applyDefaultValues, " system" },
157
157
158
158
{ " SHM" , fixShmKey, 0 }, // has to come after apply default values
@@ -223,7 +223,7 @@ ConfigInfo::m_ConfigRules[] = {
223
223
{ 0 , 0 }
224
224
};
225
225
226
- struct DepricationTransform {
226
+ struct DeprecationTransform {
227
227
const char * m_section;
228
228
const char * m_oldName;
229
229
const char * m_newName;
@@ -232,7 +232,7 @@ struct DepricationTransform {
232
232
};
233
233
234
234
static
235
- const DepricationTransform f_deprication [] = {
235
+ const DeprecationTransform f_deprecation [] = {
236
236
{ DB_TOKEN, " Discless" , " Diskless" , 0 , 1 },
237
237
{ DB_TOKEN, " Id" , " NodeId" , 0 , 1 },
238
238
{ API_TOKEN, " Id" , " NodeId" , 0 , 1 },
@@ -316,8 +316,8 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
316
316
KEY_INTERNAL,
317
317
" ByteOrder" ,
318
318
" COMPUTER" ,
319
- 0 ,
320
- ConfigInfo::CI_DEPRICATED ,
319
+ 0 , // No new parameter to use instead of deprecated
320
+ ConfigInfo::CI_DEPRECATED ,
321
321
false ,
322
322
ConfigInfo::CI_STRING,
323
323
0 ,
@@ -466,8 +466,8 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
466
466
KEY_INTERNAL,
467
467
" Id" ,
468
468
DB_TOKEN,
469
- " " ,
470
- ConfigInfo::CI_DEPRICATED ,
469
+ 0 , // No new parameter to use instead of deprecated
470
+ ConfigInfo::CI_DEPRECATED ,
471
471
false ,
472
472
ConfigInfo::CI_INT,
473
473
MANDATORY,
@@ -562,8 +562,9 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
562
562
CFG_DB_NO_INDEXES,
563
563
" MaxNoOfIndexes" ,
564
564
DB_TOKEN,
565
- " Total number of indexes that can be defined in the system" ,
566
- ConfigInfo::CI_DEPRICATED,
565
+ // The name of new parameter to use instead of deprecated
566
+ " MaxNoOfOrderedIndexes or MaxNoOfUniqueHashIndexes" ,
567
+ ConfigInfo::CI_DEPRECATED,
567
568
false ,
568
569
ConfigInfo::CI_INT,
569
570
" 128" ,
@@ -1169,8 +1170,8 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
1169
1170
CFG_DB_LCP_DISC_PAGES_TUP_SR,
1170
1171
" NoOfDiskPagesToDiskDuringRestartTUP" ,
1171
1172
DB_TOKEN,
1172
- " DiskCheckpointSpeedSr" ,
1173
- ConfigInfo::CI_DEPRICATED ,
1173
+ " DiskCheckpointSpeedSr" , // The new parameter name to use
1174
+ ConfigInfo::CI_DEPRECATED ,
1174
1175
0 ,
1175
1176
ConfigInfo::CI_INT,
1176
1177
" 40" ,
@@ -1181,8 +1182,8 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
1181
1182
CFG_DB_LCP_DISC_PAGES_TUP,
1182
1183
" NoOfDiskPagesToDiskAfterRestartTUP" ,
1183
1184
DB_TOKEN,
1184
- " DiskCheckpointSpeed" ,
1185
- ConfigInfo::CI_DEPRICATED ,
1185
+ " DiskCheckpointSpeed" , // The new parameter name to use
1186
+ ConfigInfo::CI_DEPRECATED ,
1186
1187
0 ,
1187
1188
ConfigInfo::CI_INT,
1188
1189
" 40" ,
@@ -1193,8 +1194,8 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
1193
1194
CFG_DB_LCP_DISC_PAGES_ACC_SR,
1194
1195
" NoOfDiskPagesToDiskDuringRestartACC" ,
1195
1196
DB_TOKEN,
1196
- " DiskCheckpointSpeedSr" ,
1197
- ConfigInfo::CI_DEPRICATED ,
1197
+ " DiskCheckpointSpeedSr" , // The new parameter name to use
1198
+ ConfigInfo::CI_DEPRECATED ,
1198
1199
0 ,
1199
1200
ConfigInfo::CI_INT,
1200
1201
" 20" ,
@@ -1206,7 +1207,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
1206
1207
" NoOfDiskPagesToDiskAfterRestartACC" ,
1207
1208
DB_TOKEN,
1208
1209
" DiskCheckpointSpeed" ,
1209
- ConfigInfo::CI_DEPRICATED,
1210
+ ConfigInfo::CI_DEPRECATED, // The new parameter name to use
1210
1211
0 ,
1211
1212
ConfigInfo::CI_INT,
1212
1213
" 20" ,
@@ -1230,8 +1231,8 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
1230
1231
KEY_INTERNAL,
1231
1232
" Discless" ,
1232
1233
DB_TOKEN,
1233
- " Diskless" ,
1234
- ConfigInfo::CI_DEPRICATED ,
1234
+ " Diskless" , // The new parameter name to use
1235
+ ConfigInfo::CI_DEPRECATED ,
1235
1236
CI_RESTART_INITIAL | CI_RESTART_SYSTEM,
1236
1237
ConfigInfo::CI_BOOL,
1237
1238
" false" ,
@@ -1892,8 +1893,8 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
1892
1893
KEY_INTERNAL,
1893
1894
" Id" ,
1894
1895
API_TOKEN,
1895
- " " ,
1896
- ConfigInfo::CI_DEPRICATED ,
1896
+ 0 , // No new parameter to use instead of deprecated
1897
+ ConfigInfo::CI_DEPRECATED ,
1897
1898
false ,
1898
1899
ConfigInfo::CI_INT,
1899
1900
MANDATORY,
@@ -2097,8 +2098,8 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
2097
2098
KEY_INTERNAL,
2098
2099
" Id" ,
2099
2100
MGM_TOKEN,
2100
- " " ,
2101
- ConfigInfo::CI_DEPRICATED ,
2101
+ 0 , // No new parameter to use instead of deprecated
2102
+ ConfigInfo::CI_DEPRECATED ,
2102
2103
false ,
2103
2104
ConfigInfo::CI_INT,
2104
2105
MANDATORY,
@@ -2333,8 +2334,8 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
2333
2334
CFG_CONNECTION_SERVER_PORT,
2334
2335
" PortNumber" ,
2335
2336
" TCP" ,
2336
- " Port used for this transporter " ,
2337
- ConfigInfo::CI_DEPRICATED ,
2337
+ 0 , // No new parameter to use instead of deprecated
2338
+ ConfigInfo::CI_DEPRECATED ,
2338
2339
false ,
2339
2340
ConfigInfo::CI_INT,
2340
2341
MANDATORY,
@@ -2502,8 +2503,8 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
2502
2503
CFG_CONNECTION_SERVER_PORT,
2503
2504
" PortNumber" ,
2504
2505
" SHM" ,
2505
- " Port used for this transporter " ,
2506
- ConfigInfo::CI_DEPRICATED ,
2506
+ 0 , // No new parameter to use instead of deprecated
2507
+ ConfigInfo::CI_DEPRECATED ,
2507
2508
false ,
2508
2509
ConfigInfo::CI_INT,
2509
2510
MANDATORY,
@@ -2736,8 +2737,8 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
2736
2737
CFG_CONNECTION_SERVER_PORT,
2737
2738
" PortNumber" ,
2738
2739
" SCI" ,
2739
- " Port used for this transporter " ,
2740
- ConfigInfo::CI_DEPRICATED ,
2740
+ 0 , // No new parameter to use instead of deprecated
2741
+ ConfigInfo::CI_DEPRECATED ,
2741
2742
false ,
2742
2743
ConfigInfo::CI_INT,
2743
2744
MANDATORY,
@@ -2945,7 +2946,7 @@ ConfigInfo::ConfigInfo()
2945
2946
const Status status = param._status ;
2946
2947
require (status == CI_USED ||
2947
2948
status == CI_EXPERIMENTAL ||
2948
- status == CI_DEPRICATED ||
2949
+ status == CI_DEPRECATED ||
2949
2950
status == CI_NOTIMPLEMENTED ||
2950
2951
status == CI_INTERNAL);
2951
2952
pinfo.put (" Status" , status);
@@ -3662,7 +3663,7 @@ void ConfigInfo::print_impl(const char* section_filter,
3662
3663
for (const char * n = it.first (); n != NULL ; n = it.next ()) {
3663
3664
// Skip entries with different F- and P-names
3664
3665
if (getStatus (sec, n) == ConfigInfo::CI_INTERNAL) continue ;
3665
- if (getStatus (sec, n) == ConfigInfo::CI_DEPRICATED ) continue ;
3666
+ if (getStatus (sec, n) == ConfigInfo::CI_DEPRECATED ) continue ;
3666
3667
if (getStatus (sec, n) == ConfigInfo::CI_NOTIMPLEMENTED) continue ;
3667
3668
printer.parameter (s, sec, n, *this );
3668
3669
}
@@ -3682,7 +3683,7 @@ void ConfigInfo::print_impl(const char* section_filter,
3682
3683
for (const char * n = it.first (); n != NULL ; n = it.next ()) {
3683
3684
// Skip entries with different F- and P-names
3684
3685
if (getStatus (sec, n) == ConfigInfo::CI_INTERNAL) continue ;
3685
- if (getStatus (sec, n) == ConfigInfo::CI_DEPRICATED ) continue ;
3686
+ if (getStatus (sec, n) == ConfigInfo::CI_DEPRECATED ) continue ;
3686
3687
if (getStatus (sec, n) == ConfigInfo::CI_NOTIMPLEMENTED) continue ;
3687
3688
printer.parameter (s, sec, n, *this );
3688
3689
}
@@ -4556,7 +4557,7 @@ transform(InitConfigFileParser::Context & ctx,
4556
4557
if (!((oldType == PropertiesType_Uint32 || oldType == PropertiesType_Uint64)
4557
4558
&& (newType == ConfigInfo::CI_INT || newType == ConfigInfo::CI_INT64 || newType == ConfigInfo::CI_BOOL))){
4558
4559
ndbout << " oldType: " << (int )oldType << " , newType: " << (int )newType << endl;
4559
- ctx.reportError (" Unable to handle type conversion w.r.t deprication %s %s"
4560
+ ctx.reportError (" Unable to handle type conversion w.r.t deprecation %s %s"
4560
4561
" - [%s] starting at line: %d" ,
4561
4562
oldName, newName,
4562
4563
ctx.fname , ctx.m_sectionLineno );
@@ -4567,7 +4568,7 @@ transform(InitConfigFileParser::Context & ctx,
4567
4568
4568
4569
Uint64 newVal = (Uint64)((Int64)oldVal * mul + add);
4569
4570
if (!ctx.m_info ->verify (ctx.m_currentInfo , newName, newVal)){
4570
- ctx.reportError (" Unable to handle deprication , new value not within bounds"
4571
+ ctx.reportError (" Unable to handle deprecation , new value not within bounds"
4571
4572
" %s %s - [%s] starting at line: %d" ,
4572
4573
oldName, newName,
4573
4574
ctx.fname , ctx.m_sectionLineno );
@@ -4583,7 +4584,7 @@ transform(InitConfigFileParser::Context & ctx,
4583
4584
}
4584
4585
4585
4586
static bool
4586
- fixDepricated (InitConfigFileParser::Context & ctx, const char * data){
4587
+ fixDeprecated (InitConfigFileParser::Context & ctx, const char * data){
4587
4588
const char * name;
4588
4589
/* *
4589
4590
* Transform old values to new values
@@ -4592,7 +4593,7 @@ fixDepricated(InitConfigFileParser::Context & ctx, const char * data){
4592
4593
Properties tmp (true );
4593
4594
Properties::Iterator it (ctx.m_currentSection );
4594
4595
for (name = it.first (); name != NULL ; name = it.next ()) {
4595
- const DepricationTransform * p = &f_deprication [0 ];
4596
+ const DeprecationTransform * p = &f_deprecation [0 ];
4596
4597
while (p->m_section != 0 ){
4597
4598
if (strcmp (p->m_section , ctx.fname ) == 0 ){
4598
4599
double mul = p->m_mul ;
0 commit comments