Dump the cache file to a temporary file and rename it the expected
authorJohan Dahlin <johan@async.com.br>
Mon, 8 Dec 2008 16:29:33 +0000 (16:29 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Mon, 8 Dec 2008 16:29:33 +0000 (16:29 +0000)
commitd05de46ddec10d4b7f9968320d2cb5f54d14d2f4
tree92bcd7013972925ef7dfeef5e422e13dc7b03e36
parent645cc555cce7b6c1252e19f70d5083f30b40c03e
Dump the cache file to a temporary file and rename it the expected

2008-12-08  Johan Dahlin  <johan@async.com.br>

* giscanner/cachestore.py (CacheStore.store): Dump the cache
file to a temporary file and rename it the expected filename
only when it's completely written.
This should make the cache more roboust when run in parallel,
and hopefully avoid triggering bugs in Python.

svn path=/trunk/; revision=985
ChangeLog
giscanner/cachestore.py