Commit f8416686 authored by unknown's avatar unknown

Merge dev3-138.dev.cn.tlan:/home/zhl/mysql/mysql-5.0/bug19787

into  dev3-138.dev.cn.tlan:/home/zhl/mysql/mysql-5.1/bug19787


storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
  correct error message when illegal configuration changed
parents 859493b3 c60bfc38
......@@ -6699,7 +6699,13 @@ void Dbdih::execCREATE_FRAGMENTATION_REQ(Signal * signal)
}
}
}
ndbrequire(count == (2U + (1 + noOfReplicas) * noOfFragments));
if(count != (2U + (1 + 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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment