Add Xapian::DOC_ASSUME_VALID flag
commit26f4a06b5bf3ac4bbd0d326b76f1b17608951b35
authorOlly Betts <olly@survex.com>
Thu, 15 Dec 2016 10:23:46 +0000 (15 23:23 +1300)
committerOlly Betts <olly@survex.com>
Thu, 15 Dec 2016 21:10:43 +0000 (16 10:10 +1300)
tree9455ade95072adf476c42fd5b4315a64d59d22ae
parentba0535eb27bcf495d584ae1db9f3d5c2fd5f6b41
Add Xapian::DOC_ASSUME_VALID flag

This flag tells Database::get_document() that it doesn't need to
check that the passed docid is valid.  Fixes #739, reported by
Germán M. Bravo.

(cherry picked from commit ce33b20d98f02d0f6aa1e5c94c30b9cda10ef09a)
xapian-core/api/omdatabase.cc
xapian-core/backends/inmemory/inmemory_database.cc
xapian-core/backends/inmemory/inmemory_document.cc
xapian-core/include/xapian/constants.h
xapian-core/include/xapian/database.h
xapian-core/tests/api_backend.cc