Commit 5821d2ea authored by joreland@mysql.com's avatar joreland@mysql.com

1) Removed to hard require

2) Fix variable scope for irix compiler
parent f8778b2c
...@@ -5912,10 +5912,18 @@ void Dblqh::execACCKEYREF(Signal* signal) ...@@ -5912,10 +5912,18 @@ void Dblqh::execACCKEYREF(Signal* signal)
* Only primary replica can get ZTUPLE_ALREADY_EXIST || ZNO_TUPLE_FOUND * Only primary replica can get ZTUPLE_ALREADY_EXIST || ZNO_TUPLE_FOUND
* *
* Unless it's a simple or dirty read * Unless it's a simple or dirty read
*
* NOT TRUE!
* 1) op1 - primary insert ok
* 2) op1 - backup insert fail (log full or what ever)
* 3) op1 - delete ok @ primary
* 4) op1 - delete fail @ backup
*
* -> ZNO_TUPLE_FOUND is possible
*/ */
ndbrequire ndbrequire
(tcPtr->seqNoReplica == 0 || (tcPtr->seqNoReplica == 0 ||
(errCode != ZTUPLE_ALREADY_EXIST && errCode != ZNO_TUPLE_FOUND) || errCode != ZTUPLE_ALREADY_EXIST ||
(tcPtr->operation == ZREAD && (tcPtr->dirtyOp || tcPtr->opSimple))); (tcPtr->operation == ZREAD && (tcPtr->dirtyOp || tcPtr->opSimple)));
} }
tcPtr->abortState = TcConnectionrec::ABORT_FROM_LQH; tcPtr->abortState = TcConnectionrec::ABORT_FROM_LQH;
......
...@@ -849,7 +849,7 @@ NDBT_Tables::createTable(Ndb* pNdb, const char* _name, bool _temp, ...@@ -849,7 +849,7 @@ NDBT_Tables::createTable(Ndb* pNdb, const char* _name, bool _temp,
} }
Uint32 i = 0; Uint32 i = 0;
for(Uint32 i = 0; indexes[i].m_table != 0; i++){ for(i = 0; indexes[i].m_table != 0; i++){
if(strcmp(indexes[i].m_table, _name) != 0) if(strcmp(indexes[i].m_table, _name) != 0)
continue; continue;
Uint32 j = 0; Uint32 j = 0;
......
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