浏览代码

fix : cleanup cache on rollback.

Nicolas Cannasse 19 年之前
父节点
当前提交
97770bdffb
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);