1. cometpeak
  2. db-cc

Commits

bitblaze  committed c864c20

Final update for OCC

  • Participants
  • Parent commits d6cd1d6
  • Branches master

Comments (0)

Files changed (1)

File txn/txn_processor.cc

View file
       }
 
       // Commit/restart
-      if (!valid) {
+      if (valid) {
+        ApplyWrites(txn);
+	txn_results_.Push(txn);
+      } else {
         txn->status_ = INCOMPLETE;
 	txn->occ_start_time_ = GetTime();
 	tp_.RunTask(new Method<TxnProcessor, void, Txn*>(
 	      this,
 	      &TxnProcessor::ExecuteTxn,
 	      txn));
-      } else {
-        ApplyWrites(txn);
-	txn_results_.Push(txn);
       }
     }
   }