summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <lzhou/root@dev3-138.dev.cn.tlan>2006-09-14 14:34:06 +0000
committerunknown <lzhou/root@dev3-138.dev.cn.tlan>2006-09-14 14:34:06 +0000
commitc60bfc387d1ff6622df09790661d49c32a2c11b2 (patch)
tree71d2388e900a5f86d3f619ee2338bbd0e926f47d
parent6f110c9649dfae5c2bd2ec63c3c4046a1b39c232 (diff)
downloadmariadb-git-c60bfc387d1ff6622df09790661d49c32a2c11b2.tar.gz
BUG#19787 Modify correct message when some important variables are changed but cannot be applied by online
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp: Modify error message when illegal configuration changed.
-rw-r--r--ndb/src/kernel/blocks/dbdih/DbdihMain.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp b/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
index 1c1fdb41d51..c256c539fed 100644
--- a/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
+++ b/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
@@ -6488,7 +6488,13 @@ void Dbdih::execCREATE_FRAGMENTATION_REQ(Signal * signal){
}//for
}
}
- ndbrequire(count == (2 + noOfReplicas * noOfFragments));
+ if(count != (2 + noOfReplicas * noOfFragments)){
+ char buf[255];
+ BaseString::snprintf(buf, sizeof(buf),
+ "Illegal configuration change: NoOfReplicas."
+ " Can't be applied online ");
+ progError(__LINE__, NDBD_EXIT_INVALID_CONFIG, buf);
+ }
CreateFragmentationConf * const conf =
(CreateFragmentationConf*)signal->getDataPtrSend();