[Xapian-discuss] Omega cgi question

Olly Betts olly at survex.com
Thu Sep 2 01:56:48 BST 2004


On Wed, Sep 01, 2004 at 03:18:32PM -0400, Jim Lynch wrote:
> Another intersting observation.  If I attempt to list a db that exists, 
> but is empty I also get the caught unknown exception message.  For 
> instance, I have a closed21 directory with a database that was created 
> with the createdatabase utility.  If I call omega.cgi with
> 
> DB=closed20/closed21
> 
> I get the exception, however if I call it with
> 
> DB=closed20/closed25
> 
> I don't.  The only difference is that 25 has data where 21 doesn't.  
> Permissions are OK on both.

Ah.  This must mean that the problem happens once we've called
Xapian::Database's constructor as before then we've not looked at the
database so both cases would really have to behave the same.

Unfortunately that doesn't help me know what's going wrong for you.
Can you step the debugger into Xapian::Auto::open() and down into
Xapian::Database::Database()?

> Makes things a bit difficult when working with dynamic databases.  I 
> sometimes don't know if they db has been populated yet or not.

This should work (and it does for me!)

Cheers,
    Olly



More information about the Xapian-discuss mailing list