[Dextrose] [Sugar-devel] Datastore index corruption!
tomeu at sugarlabs.org
Mon Aug 2 13:40:53 EDT 2010
On Mon, Aug 2, 2010 at 19:36, Bernie Innocenti <bernie at codewiz.org> wrote:
> On Fri, 2010-07-30 at 07:11 +0000, Aleksey Lim wrote:
>> > Is it in Rarian or in the datastore code itelf? How do we change it to a
>> > sane 2-3 seconds delay?
>> imo, initiating ds flush (or regualr ds shutdown), and thus setting update
>> flag, on power-off button ACPI catch is more appropriate way to handle only
>> this usecase (we can all time play w/ timeout and don't find proper value
>> that will be good in all cases).
> This would help catch a few more cases of data loss, but not all of
> So, while it would be useful, I'd complement it with a shorter flush
I think this should be the first thing we do about this problem.
> What's to be gained by delaying writes 60 seconds anyway? How
> long does it actually take to flush the index to disk?
Shouldn't take much, even on platforms with very slow writes as the
XOs. I would suggest 6 seconds or less.
> // Bernie Innocenti - http://codewiz.org/
> \X/ Sugar Labs - http://sugarlabs.org/
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
More information about the Dextrose