flush the update queue before set_metadata
This commit is contained in:
parent
994a8c0911
commit
841b8cff03
@ -754,13 +754,13 @@ bool Db::i_close(bool final)
|
|||||||
try {
|
try {
|
||||||
bool w = m_ndb->m_iswritable;
|
bool w = m_ndb->m_iswritable;
|
||||||
if (w) {
|
if (w) {
|
||||||
|
#ifdef IDX_THREADS
|
||||||
|
waitUpdIdle();
|
||||||
|
#endif
|
||||||
if (!m_ndb->m_noversionwrite)
|
if (!m_ndb->m_noversionwrite)
|
||||||
m_ndb->xwdb.set_metadata(cstr_RCL_IDX_VERSION_KEY,
|
m_ndb->xwdb.set_metadata(cstr_RCL_IDX_VERSION_KEY,
|
||||||
cstr_RCL_IDX_VERSION);
|
cstr_RCL_IDX_VERSION);
|
||||||
LOGDEB(("Rcl::Db:close: xapian will close. May take some time\n"));
|
LOGDEB(("Rcl::Db:close: xapian will close. May take some time\n"));
|
||||||
#ifdef IDX_THREADS
|
|
||||||
waitUpdIdle();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
deleteZ(m_ndb);
|
deleteZ(m_ndb);
|
||||||
if (w)
|
if (w)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user