[Xapian-discuss] Xapian::DatabaseModifiedError caused within
transaction
Hightman(马明练)
hightman at zuaa.zju.edu.cn
Sun Jul 29 13:04:48 BST 2007
For some reasons, my document was updated by users. When the update action(delete + add) multiple called within one transaction, There is DatabaseModifiedError taken place always. the produced code such as:
database.begin_transaction();
..
database.delete_document(unique_term);
database.add_document(doc1);
..
database.delete_document(unique_term);
database.add_document(doc2);
..
database.commit_transaction();
When after these codes, the databases(flint backend) must be broken for 'DatabaseModifiedError' (The revision being read has been discarded - you should call Xapian::Database::reopen() and retry the operation)
What can I do for these errors?
More information about the Xapian-discuss
mailing list