Ticket #149 (closed defect: released)
erroneous flush() call made to read-only remote DB
| Reported by: | mhammond | Owned by: | olly |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Backend-Remote | Version: | SVN trunk |
| Severity: | normal | Keywords: | |
| Cc: | Blocked By: | ||
| Operating System: | All | Blocking: | #120, #154 |
Description
* Start a read-only tcp server on (say) port 8100 * Execute 'python -c "import xapian;xapian.remote_open('localhost', 8100)" * You will see a message logged at the server:
Got exception NetworkError?: Server is read-only
It turns out this is a flush() call being made as the client's 'Database' object is destructing - specifically, the flush is in 'Database::Internal::dtor_called'.
This happens as the database is destructing, so the connection is already being closed. The error doing the flush() is caught and ignored - so as far as I know, this is purely a cosmetic issue (but one that might cause concern)
Change History
Note: See
TracTickets for help on using
tickets.
