Explorar o código

fix : cleanup cache on rollback.

Nicolas Cannasse %!s(int64=19) %!d(string=hai) anos
pai
achega
97770bdffb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      std/neko/db/Transaction.hx

+ 1 - 0
std/neko/db/Transaction.hx

@@ -37,6 +37,7 @@ class Transaction {
 			mainFun();
 		} catch( e : Dynamic ) {
 			if( count > 0 && isDeadlock(e) ) {
+				Manager.cleanup();
 				Manager.cnx.rollback(); // should be already done, but in case...
 				Manager.cnx.startTransaction();
 				runMainLoop(mainFun,logError,count-1);