diff options
author | Simon Schampijer <simon@laptop.org> | 2012-11-07 17:50:54 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@laptop.org> | 2012-11-07 17:50:54 (GMT) |
commit | 8080ae417c1b999eb9d7e3742d62268339f96767 (patch) | |
tree | 2b671ed23d65806a323b2e80bdd282efba264f97 | |
parent | c44814178a3809882a6bc0337ef2b08e23f650d2 (diff) |
When rebuilding the index use the index in the tmpfs
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Martin Langhoff <martin@laptop.org>
-rw-r--r-- | src/carquinyol/datastore.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/carquinyol/datastore.py b/src/carquinyol/datastore.py index a859dfe..d9bd56b 100644 --- a/src/carquinyol/datastore.py +++ b/src/carquinyol/datastore.py @@ -171,8 +171,7 @@ class DataStore(dbus.service.Object): temp_index_path]) index_du = int(index_du.split('\t')[0]) # disk available, in bytes - index_path = layoutmanager.get_instance().get_index_path() - stat = os.statvfs(index_path) + stat = os.statvfs(temp_index_path) da = stat.f_bavail * stat.f_bsize if da > (index_du * 1.2) and da > MIN_INDEX_FREE_BYTES: # 20% room for growth logger.warn('Attempting to move tempfs index to disk') |