[honey] Don't access stale fds after Database::close()
commit2a980274452b642739f799f0c066d9cdfb3048da
authorOlly Betts <olly@survex.com>
Wed, 9 Jan 2019 00:58:06 +0000 (9 13:58 +1300)
committerOlly Betts <olly@survex.com>
Wed, 9 Jan 2019 00:58:06 +0000 (9 13:58 +1300)
tree98e2efb737618587c3be8a1919b32fff250dac06
parent4e5e165be02f44c99ddb930c2c377ced0c814508
[honey] Don't access stale fds after Database::close()

They may have been reused for a different file, and then we could
end up reading/writing that file instead.

Reported by Vaibhav Kansagara.
xapian-core/backends/honey/honey_cursor.cc
xapian-core/backends/honey/honey_cursor.h
xapian-core/backends/honey/honey_table.cc
xapian-core/backends/honey/honey_table.h
xapian-core/tests/api_closedb.cc