diff --git a/rmmxapianapi.cc b/rmmxapianapi.cc index 68d8a69..7594907 100644 --- a/rmmxapianapi.cc +++ b/rmmxapianapi.cc @@ -290,6 +290,9 @@ extern "C" { void EMSCRIPTEN_KEEPALIVE reloadDatabase() { dbc->db.reopen(); + for(Xapian::WritableDatabase dbw : dbc->addedWritableDatabases) { + dbw.reopen(); + } cout << "Database reopened" << endl; }