Commit a1fa0ed4 authored by unknown's avatar unknown

ndb - fix incorrect assertion

  Dont assert when getting gci=0 in read only transaction


storage/ndb/src/ndbapi/NdbTransaction.cpp:
  Dont assert when getting gci=0 in read only transaction
parent fdfabb82
...@@ -1768,8 +1768,10 @@ from other transactions. ...@@ -1768,8 +1768,10 @@ from other transactions.
if (tCommitFlag == 1) { if (tCommitFlag == 1) {
theCommitStatus = Committed; theCommitStatus = Committed;
theGlobalCheckpointId = tGCI; theGlobalCheckpointId = tGCI;
assert(tGCI); if (tGCI) // Read(dirty) only transaction doesnt get GCI
*p_latest_trans_gci = tGCI; {
*p_latest_trans_gci = tGCI;
}
} else if ((tNoComp >= tNoSent) && } else if ((tNoComp >= tNoSent) &&
(theLastExecOpInList->theCommitIndicator == 1)){ (theLastExecOpInList->theCommitIndicator == 1)){
......
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