mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
DbdihMain.cpp:
fix small error that jonas pointed out that would mean we always die on assert, intsead of just on error ndb/src/kernel/blocks/dbdih/DbdihMain.cpp: fix small error that jonas pointed out that would mean we always die on assert, intsead of just on error
This commit is contained in:
parent
db2c1beec1
commit
3fe5fe577b
1 changed files with 5 additions and 2 deletions
|
|
@ -10976,8 +10976,11 @@ void Dbdih::initCommonData()
|
||||||
|
|
||||||
cnoReplicas = 1;
|
cnoReplicas = 1;
|
||||||
ndb_mgm_get_int_parameter(p, CFG_DB_NO_REPLICAS, &cnoReplicas);
|
ndb_mgm_get_int_parameter(p, CFG_DB_NO_REPLICAS, &cnoReplicas);
|
||||||
progError(__LINE__, NDBD_EXIT_INVALID_CONFIG,
|
if (cnoReplicas > 4)
|
||||||
"Only up to four replicas are supported. Check NoOfReplicas.");
|
{
|
||||||
|
progError(__LINE__, NDBD_EXIT_INVALID_CONFIG,
|
||||||
|
"Only up to four replicas are supported. Check NoOfReplicas.");
|
||||||
|
}
|
||||||
|
|
||||||
cgcpDelay = 2000;
|
cgcpDelay = 2000;
|
||||||
ndb_mgm_get_int_parameter(p, CFG_DB_GCP_INTERVAL, &cgcpDelay);
|
ndb_mgm_get_int_parameter(p, CFG_DB_GCP_INTERVAL, &cgcpDelay);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue