#3071 HIGH Trial-3: datastore.write callbacks don't work

Zarro Boogs per Child bugtracker at laptop.org
Thu Aug 30 18:17:55 EDT 2007


#3071: datastore.write callbacks don't work
------------------------+---------------------------------------------------
  Reporter:  erikb      |       Owner:  J5     
      Type:  defect     |      Status:  new    
  Priority:  high       |   Milestone:  Trial-3
 Component:  datastore  |     Version:         
Resolution:             |    Keywords:         
  Verified:  0          |  
------------------------+---------------------------------------------------
Comment (by J5):

 Ah, so there is a race in here.  I can make create() async but I think we
 need support from the datastore to prevent race conditions.  Basically the
 datastore needs to record who is making the create request.  If another
 request comes in before the create request is finished we should assume it
 is an update.  Of course if you allow multiple create requests it gets
 even harrier because at that point it is hard to tell if the request is a
 create or update.  Any suggestions?  Leaving it up to the client to
 prevent the race is doable but not so easy.

-- 
Ticket URL: <http://dev.laptop.org/ticket/3071#comment:1>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list