[Xapian-devel] Document ID 0 is invalid... but not always...

Olly Betts olly at survex.com
Tue May 15 14:04:33 BST 2007


On Tue, May 15, 2007 at 01:26:02PM +0100, Richard Boulton wrote:
> Richard Boulton wrote:
> >Hmm - this should probably be added as a bug to the issue tracker - we 
> >should detect the overflow and report and appropriate error.
> 
> Added as bug #152 so we don't forget to fix it at some point.

I've noted this as a issue in the documentation comment for
WritableDatabase::replace_document(), so at least it will be documented
for 1.0.0.

Essentially this is due to the change (in 0.8.2) which allowed
replace_document() to add a new document.  Before that you'd have to add
more than 2 billion documents to a database to get this to happen.

Cheers,
    Olly



More information about the Xapian-devel mailing list