#10905 HIGH 11.2.0-: Copy item from external device to Journal: misorder
Zarro Boogs per Child
bugtracker at laptop.org
Fri Jun 17 06:49:30 EDT 2011
#10905: Copy item from external device to Journal: misorder
------------------------------+---------------------------------------------
Reporter: erikos | Owner: erikos
Type: defect | Status: new
Priority: high | Milestone: 11.2.0-final
Component: sugar | Version: Development build as of this date
Resolution: | Keywords: blocker?
Next_action: code | Verified: 0
Deployment_affected: | Blockedby:
Blocking: |
------------------------------+---------------------------------------------
Comment(by erikos):
Update: the trace of this bug is hinting to the ds.
When we switch from the 'external-device-view' to the Journal view the
datastore is requested for a new set of items. The returned list has the
new item at the end.
Another hint which is distinctive to this bug is that if you wait a few
seconds after you copied the file and switch then to the Journal view the
copied item has the right position. This is because after
[http://git.sugarlabs.org/sugar-
datastore/mainline/blobs/master/src/carquinyol/indexstore.py#line47 5
seconds] we flush the index. We do call flush index after we have created
the new ds entry but we do [http://git.sugarlabs.org/sugar-
datastore/mainline/blobs/master/src/carquinyol/indexstore.py#line269 not
force it]. If you set [http://git.sugarlabs.org/sugar-
datastore/mainline/blobs/master/src/carquinyol/indexstore.py#line281 here]
'force' to 'true' we flush the index and have the desired result.
I compared the code with the 0.84 one, where this is working, but we do
not force the flush there neither. So I am looking now at other changes
that might have caused it. [This one http://git.sugarlabs.org/sugar-
datastore/mainline/commit/3644facf0a296c7d55b44394942b866529361248] looks
like touching this area...
--
Ticket URL: <http://dev.laptop.org/ticket/10905#comment:4>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list