|
a/src/rcldb/rcldb.cpp |
|
b/src/rcldb/rcldb.cpp |
|
... |
|
... |
752 |
|
752 |
|
753 |
string ermsg;
|
753 |
string ermsg;
|
754 |
try {
|
754 |
try {
|
755 |
bool w = m_ndb->m_iswritable;
|
755 |
bool w = m_ndb->m_iswritable;
|
756 |
if (w) {
|
756 |
if (w) {
|
|
|
757 |
#ifdef IDX_THREADS
|
|
|
758 |
waitUpdIdle();
|
|
|
759 |
#endif
|
757 |
if (!m_ndb->m_noversionwrite)
|
760 |
if (!m_ndb->m_noversionwrite)
|
758 |
m_ndb->xwdb.set_metadata(cstr_RCL_IDX_VERSION_KEY,
|
761 |
m_ndb->xwdb.set_metadata(cstr_RCL_IDX_VERSION_KEY,
|
759 |
cstr_RCL_IDX_VERSION);
|
762 |
cstr_RCL_IDX_VERSION);
|
760 |
LOGDEB(("Rcl::Db:close: xapian will close. May take some time\n"));
|
763 |
LOGDEB(("Rcl::Db:close: xapian will close. May take some time\n"));
|
761 |
#ifdef IDX_THREADS
|
|
|
762 |
waitUpdIdle();
|
|
|
763 |
#endif
|
|
|
764 |
}
|
764 |
}
|
765 |
deleteZ(m_ndb);
|
765 |
deleteZ(m_ndb);
|
766 |
if (w)
|
766 |
if (w)
|
767 |
LOGDEB(("Rcl::Db:close() xapian close done.\n"));
|
767 |
LOGDEB(("Rcl::Db:close() xapian close done.\n"));
|
768 |
if (final) {
|
768 |
if (final) {
|