2
0
Эх сурвалжийг харах

fix : cleanup cache on rollback.

Nicolas Cannasse 19 жил өмнө
parent
commit
97770bdffb

+ 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);