mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 18:39:22 +08:00
fix(server): don't optimize database in read-only mode
This commit is contained in:
parent
23422731e2
commit
5acdb698bb
@ -186,6 +186,9 @@ function setDbAsInitialized() {
|
||||
}
|
||||
|
||||
function optimize() {
|
||||
if (config.General.readOnly) {
|
||||
return;
|
||||
}
|
||||
log.info("Optimizing database");
|
||||
const start = Date.now();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user