flush the update queue before set_metadata

This commit is contained in:
medoc 2013-08-28 11:10:40 +02:00
parent 994a8c0911
commit 841b8cff03

View File

@ -754,13 +754,13 @@ bool Db::i_close(bool final)
try {
bool w = m_ndb->m_iswritable;
if (w) {
#ifdef IDX_THREADS
waitUpdIdle();
#endif
if (!m_ndb->m_noversionwrite)
m_ndb->xwdb.set_metadata(cstr_RCL_IDX_VERSION_KEY,
cstr_RCL_IDX_VERSION);
LOGDEB(("Rcl::Db:close: xapian will close. May take some time\n"));
#ifdef IDX_THREADS
waitUpdIdle();
#endif
}
deleteZ(m_ndb);
if (w)