Avoid exception in replace_document()
commitc1d486eb19d3219e43a4eeb2963aac24d187e3b6
authorOlly Betts <olly@survex.com>
Fri, 24 Aug 2018 02:56:36 +0000 (24 14:56 +1200)
committerOlly Betts <olly@survex.com>
Fri, 24 Aug 2018 02:56:36 +0000 (24 14:56 +1200)
treef0c55b82d4dc41ca880bc86a867cd8d386d942b5
parent5c823640e52f8d9b062b24f08477a4b17eedeb56
Avoid exception in replace_document()

If replace_document() is used to add a document with a specified
docid which is <= last_docid but currently unused, glass would
throw and catch DocNotFoundError internally.  Now this case is
handled without the exception.
xapian-core/backends/glass/glass_database.cc
xapian-core/backends/glass/glass_termlist.cc
xapian-core/backends/glass/glass_termlist.h