ndb -

  post merge fixes
parent 612e2201
...@@ -74,9 +74,7 @@ typedef ndbd_exit_classification_enum ndbd_exit_classification; ...@@ -74,9 +74,7 @@ typedef ndbd_exit_classification_enum ndbd_exit_classification;
#define NDBD_EXIT_SR_OTHERNODEFAILED 2308 #define NDBD_EXIT_SR_OTHERNODEFAILED 2308
#define NDBD_EXIT_NODE_NOT_DEAD 2309 #define NDBD_EXIT_NODE_NOT_DEAD 2309
#define NDBD_EXIT_SR_REDOLOG 2310 #define NDBD_EXIT_SR_REDOLOG 2310
/*
#define NDBD_EXIT_SR_RESTARTCONFLICT 2311 #define NDBD_EXIT_SR_RESTARTCONFLICT 2311
*/
#define NDBD_EXIT_NO_MORE_UNDOLOG 2312 #define NDBD_EXIT_NO_MORE_UNDOLOG 2312
#define NDBD_EXIT_SR_UNDOLOG 2313 #define NDBD_EXIT_SR_UNDOLOG 2313
#define NDBD_EXIT_MEMALLOC 2327 #define NDBD_EXIT_MEMALLOC 2327
......
...@@ -1610,7 +1610,7 @@ void Dbdih::execSTART_PERMREF(Signal* signal) ...@@ -1610,7 +1610,7 @@ void Dbdih::execSTART_PERMREF(Signal* signal)
" with --initial as partial start has been performed" " with --initial as partial start has been performed"
" and this filesystem is unusable"); " and this filesystem is unusable");
progError(__LINE__, progError(__LINE__,
ERR_SR_RESTARTCONFLICT, NDBD_EXIT_SR_RESTARTCONFLICT,
buf); buf);
ndbrequire(false); ndbrequire(false);
} }
......
...@@ -18572,7 +18572,6 @@ Dblqh::execDUMP_STATE_ORD(Signal* signal) ...@@ -18572,7 +18572,6 @@ Dblqh::execDUMP_STATE_ORD(Signal* signal)
TcConnectionrec *regTcConnectionrec = tcConnectionrec; TcConnectionrec *regTcConnectionrec = tcConnectionrec;
Uint32 ttcConnectrecFileSize = ctcConnectrecFileSize; Uint32 ttcConnectrecFileSize = ctcConnectrecFileSize;
Uint32 arg = dumpState->args[0];
if(arg == 2306) if(arg == 2306)
{ {
for(Uint32 i = 0; i<1024; i++) for(Uint32 i = 0; i<1024; i++)
......
...@@ -85,6 +85,9 @@ static const ErrStruct errArray[] = ...@@ -85,6 +85,9 @@ static const ErrStruct errArray[] =
*/ */
{NDBD_EXIT_OS_SIGNAL_RECEIVED, XIE, "Error OS signal received"}, {NDBD_EXIT_OS_SIGNAL_RECEIVED, XIE, "Error OS signal received"},
{NDBD_EXIT_SR_RESTARTCONFLICT, XRE,
"Partial system restart causing conflicting file systems"},
/* VM */ /* VM */
{NDBD_EXIT_OUT_OF_LONG_SIGNAL_MEMORY, XCR, {NDBD_EXIT_OUT_OF_LONG_SIGNAL_MEMORY, XCR,
"Signal lost, out of long signal memory, please increase LongMessageBuffer"}, "Signal lost, out of long signal memory, please increase LongMessageBuffer"},
......
...@@ -119,7 +119,7 @@ int main(int argc, char** argv){ ...@@ -119,7 +119,7 @@ int main(int argc, char** argv){
ndbout << endl; ndbout << endl;
if (_partinfo) if (_partinfo)
print_part_info(pMyNdb, pTab); print_part_info(&MyNdb, pTab);
} }
else else
ndbout << argv[i] << ": " << dict->getNdbError() << endl; ndbout << argv[i] << ": " << dict->getNdbError() << endl;
...@@ -159,8 +159,8 @@ void print_part_info(Ndb* pNdb, NDBT_Table* pTab) ...@@ -159,8 +159,8 @@ void print_part_info(Ndb* pNdb, NDBT_Table* pTab)
if (pOp == NULL) if (pOp == NULL)
break; break;
NdbResultSet* rs= pOp->readTuples(NdbOperation::LM_CommittedRead); int rs = pOp->readTuples(NdbOperation::LM_CommittedRead);
if (rs == 0) if (rs != 0)
break; break;
if (pOp->interpret_exit_last_row() != 0) if (pOp->interpret_exit_last_row() != 0)
...@@ -183,7 +183,7 @@ void print_part_info(Ndb* pNdb, NDBT_Table* pTab) ...@@ -183,7 +183,7 @@ void print_part_info(Ndb* pNdb, NDBT_Table* pTab)
ndbout << g_part_info[i].m_title << "\t"; ndbout << g_part_info[i].m_title << "\t";
ndbout << endl; ndbout << endl;
while(rs->nextResult() == 0) while(pOp->nextResult() == 0)
{ {
for(i = 0; g_part_info[i].m_title != 0; i++) for(i = 0; g_part_info[i].m_title != 0; i++)
{ {
......
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