From 97fb5df259aed0d71af47419773d0b65e47f9de1 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Tue, 29 May 2018 10:17:21 +1200 Subject: [PATCH] [honey] Wrap !store.is_open() check in rare() Operations on a closed table should be the exception. --- xapian-core/backends/honey/honey_table.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xapian-core/backends/honey/honey_table.cc b/xapian-core/backends/honey/honey_table.cc index 67715dee5..bb1294459 100644 --- a/xapian-core/backends/honey/honey_table.cc +++ b/xapian-core/backends/honey/honey_table.cc @@ -240,7 +240,7 @@ bool HoneyTable::get_exact_entry(const std::string& key, std::string* tag) const { if (!read_only) std::abort(); - if (!store.is_open()) { + if (rare(!store.is_open())) { if (store.was_forced_closed()) throw_database_closed(); return false; -- 2.11.4.GIT