Skip to content

Commit

Permalink
Reopen all databases when reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
castaway committed Jun 26, 2024
1 parent 6fecc85 commit 9a23c62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rmmxapianapi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9a23c62

Please sign in to comment.