Commit d20bcbac authored by unknown's avatar unknown

testBasic -n NoCommit626

Handle commit of zero operations


ndb/test/ndbapi/testBasic.cpp:
  Update usage of HugoOperattions::pkReadRecord
  More test for IgnoreError
parent 9b027c04
...@@ -5107,27 +5107,15 @@ void Dbtc::execLQHKEYREF(Signal* signal) ...@@ -5107,27 +5107,15 @@ void Dbtc::execLQHKEYREF(Signal* signal)
*---------------------------------------------------------------------*/ *---------------------------------------------------------------------*/
regApiPtr->lqhkeyreqrec--; regApiPtr->lqhkeyreqrec--;
if (regApiPtr->lqhkeyconfrec == regApiPtr->lqhkeyreqrec) { if (regApiPtr->lqhkeyconfrec == regApiPtr->lqhkeyreqrec) {
if ((regApiPtr->lqhkeyconfrec == 0) && if (regApiPtr->apiConnectstate == CS_START_COMMITTING) {
(regApiPtr->apiConnectstate == CS_START_COMMITTING)) { if(regApiPtr->lqhkeyconfrec) {
if(abort == TcKeyReq::IgnoreError){
jam(); jam();
regApiPtr->returnsignal = RS_NO_RETURN; diverify010Lab(signal);
abort010Lab(signal); } else {
return; jam();
sendtckeyconf(signal, 1);
regApiPtr->apiConnectstate = CS_CONNECTED;
} }
/*----------------------------------------------------------------
* Not a single operation was successful.
* This we report as an aborted transaction
* to avoid performing a commit of zero operations.
*----------------------------------------------------------------*/
TCKEY_abort(signal, 54);
return;
}//if
if (regApiPtr->apiConnectstate == CS_START_COMMITTING) {
jam();
diverify010Lab(signal);
return; return;
} else if (regApiPtr->tckeyrec > 0 || regApiPtr->m_exec_flag) { } else if (regApiPtr->tckeyrec > 0 || regApiPtr->m_exec_flag) {
jam(); jam();
......
This diff is collapsed.
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