[Xapian-tickets] [Xapian] #421: Document modification can pick up old version

Xapian nobody at xapian.org
Thu Dec 24 18:39:30 GMT 2009


#421: Document modification can pick up old version
---------------------------+------------------------------------------------
 Reporter:  richard        |       Owner:  olly     
     Type:  defect         |      Status:  new      
 Priority:  normal         |   Milestone:  1.1.4    
Component:  Backend-Flint  |     Version:  SVN trunk
 Severity:  normal         |   Blockedby:           
 Platform:  All            |    Blocking:           
---------------------------+------------------------------------------------
 If two copies of a document are read from a database, then one is modified
 and used to replace the original document, then the other is used to
 replace the document again (which should put it back to the original
 value), the document is not reverted as expected, and remains in the state
 after the modification.

 This applies to all backends, but I'm marking it as applying to flint for
 now, since I have to pick one...

 I'm not sure if this _can_ be fixed - I think we'd have to force copies of
 documents to load their data fully when the original is modified, which in
 turn would require keeping links to all open document objects in the
 database.  Alternatively, perhaps we could raise an execption
 (InvalidOperation?) when the document tries to load data from a database
 which has been modified.

-- 
Ticket URL: <http://trac.xapian.org/ticket/421>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list