Personal tools
You are here: Home ブログ 井上 sqlite-3.3.6にアップグレード
« November 2008 »
Su Mo Tu We Th Fr Sa
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
Recent comments
AirOne v5.0.1出てしまいました inoue 2008-10-29
Re:Reversible debugging in GDB morita 2008-10-09
Re:Google Chromeの発表には驚きました inoue 2008-09-15
Re:Google Chromeの発表には驚きました Anonymous User 2008-09-10
Re:Windowsのタスクマネージャの闇 horii 2008-09-09
Re:Google Chromeの発表には驚きました inoue 2008-09-04
Re:Google Chromeの発表には驚きました inoue 2008-09-04
Re:Google Chromeの発表には驚きました inoue 2008-09-04
Re:Google Chromeの発表には驚きました Anonymous User 2008-09-03
Re:Software Design 2008年2月号「Emacsマスターへの道」の原稿を公開 elim 2008-07-25
Re:Rails(ActiveRecord)のJOINのイディオム inoue 2008-06-20
Re:「ピアレビュー」を読みました Anonymous User 2008-05-12
Categories
カテゴリなし
 
Document Actions

sqlite-3.3.6にアップグレード

つい先日sqliteを3.3.5にバージョンアップしたのですが(http://dev.ariel-networks.com/Members/inoue/sqlite-upgrade)、sqlite-3.3.6がリリースされていました。

変更点(http://www.sqlite.org/changes.html)で気になったのが、次の項目です。

  • Plays better with virus scanners on windows

どんな変更かと言うと、os_win.c(http://www.sqlite.org/cvstrac/fileview?f=sqlite/src/os_win.c)のコメントにあります。

** Note that windows does not allow a file to be deleted if some other
** process has it open.  Sometimes a virus scanner or indexing program
** will open a journal file shortly after it is created in order to do
** whatever it is it does.  While this other process is holding the
** file open, we will be unable to delete it.  To work around this
** problem, we delay 100 milliseconds and try to delete again.  Up
** to MX_DELETION_ATTEMPTs deletion attempts are run before giving
** up and returning an error.

Windowsの場合、別プロセスがファイルをオープンしていると、そのファイルを削除できません(Unixとは違います)。ウィルススキャンやデスクトップサーチ系のソフトが、ファイル作成のイベントを契機にそのファイルをオープンすることがあります。そのためファイル削除に失敗する可能性があります。それに対応するために、100ミリ秒の待機の後、削除のリトライをする修正です。

AirOneでは、この手の対応はしていません。AirOneの場合、削除に失敗して致命的になるようなファイルは存在しないので(ゴミとして残ることはありますが)、ここまでやる必要は無いという判断です。

The URL to Trackback this entry is:
http://dev.ariel-networks.com/Members/inoue/sqlite-3-3-6/tbping
Add comment

You can add a comment by filling out the form below. Plain text formatting.

(Required)
(Required)
(Required)
This helps us prevent automated spamming.
Captcha Image


Copyright(C) 2001 - 2006 Ariel Networks, Inc. All rights reserved.