[Bbs2ch-cvs 386] [368] エラージ時にちゃんとトランザクションが終了できていなかったのを修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 2月 10日 (日) 22:37:56 JST


Revision: 368
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=368
Author:   flyson
Date:     2008-02-10 22:37:56 +0900 (Sun, 10 Feb 2008)

Log Message:
-----------
エラージ時にちゃんとトランザクションが終了できていなかったのを修正

Modified Paths:
--------------
    trunk/bbs2chreader/chrome/content/bbs2chreader/components/b2rStorageBoard.js
    trunk/bbs2chreader/chrome/content/bbs2chreader/components/b2rStorageThread.js


-------------- next part --------------
Modified: trunk/bbs2chreader/chrome/content/bbs2chreader/components/b2rStorageBoard.js
===================================================================
--- trunk/bbs2chreader/chrome/content/bbs2chreader/components/b2rStorageBoard.js	2008-02-10 13:33:53 UTC (rev 367)
+++ trunk/bbs2chreader/chrome/content/bbs2chreader/components/b2rStorageBoard.js	2008-02-10 13:37:56 UTC (rev 368)
@@ -221,10 +221,10 @@
 					statement.getString(6)  // post_mail
 				);
 			}
-			statement.reset();
 		}catch(ex){
 			Components.utils.reportError(ex);
 		}finally{
+			statement.reset();
 			gStorageService.database.commitTransaction();
 		}
 

Modified: trunk/bbs2chreader/chrome/content/bbs2chreader/components/b2rStorageThread.js
===================================================================
--- trunk/bbs2chreader/chrome/content/bbs2chreader/components/b2rStorageThread.js	2008-02-10 13:33:53 UTC (rev 367)
+++ trunk/bbs2chreader/chrome/content/bbs2chreader/components/b2rStorageThread.js	2008-02-10 13:37:56 UTC (rev 368)
@@ -161,10 +161,10 @@
 					statement.getInt32(12)   // rate
 				);
 			}
-			statement.reset();
 		}catch(ex){
 			Components.utils.reportError(ex);
 		}finally{
+			statement.reset();
 			gStorageService.database.commitTransaction();
 		}
 


bbs2ch-cvs メーリングリストの案内
Back to archive index