Commit a1fa0ed4 authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1768,8 +1768,10 @@ from other transactions.
    if (tCommitFlag == 1) {
      theCommitStatus = Committed;
      theGlobalCheckpointId = tGCI;
      assert(tGCI);
      if (tGCI) // Read(dirty) only transaction doesnt get GCI
      {
	*p_latest_trans_gci = tGCI;
      }
    } else if ((tNoComp >= tNoSent) &&
               (theLastExecOpInList->theCommitIndicator == 1)){