diff options
author | Bernie Innocenti <bernie@codewiz.org> | 2010-08-02 17:33:43 (GMT) |
---|---|---|
committer | Anish Mangal <anish@sugarlabs.org> | 2011-08-26 06:19:51 (GMT) |
commit | 00d3b02e06aa8a7943da5bdd2784b0e3d5176376 (patch) | |
tree | 6ad50aeda2f20388afbdc4de319bd5067ea9af09 | |
parent | 32c4eca3112d8317d390927077f18e0e82b03e6b (diff) |
sl#2132: reduce _FLUSH_TIMEOUT to 5 seconds
This drastically reduces the chance of data loss in the journal on
crash or power failure.
The previous timeout was set to 60 seconds. It is not clear how much
time flushing the journal takes on an XO-1. Until we measure, 5 and 60
are equally unjustified random numbers.
Signed-off-by: Anish Mangal <anish@sugarlabs.org>
-rw-r--r-- | src/carquinyol/indexstore.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/carquinyol/indexstore.py b/src/carquinyol/indexstore.py index fbef496..333d702 100644 --- a/src/carquinyol/indexstore.py +++ b/src/carquinyol/indexstore.py @@ -41,7 +41,7 @@ _PREFIX_KEEP = 'K' _FLUSH_THRESHOLD = 20 # Force a flush after _n_ seconds since the last change to the db -_FLUSH_TIMEOUT = 60 +_FLUSH_TIMEOUT = 5 _PROPERTIES_NOT_TO_INDEX = ['timestamp', 'preview'] |