mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
fix(server): don't optimize database in read-only mode
This commit is contained in:
@@ -186,6 +186,9 @@ function setDbAsInitialized() {
|
||||
}
|
||||
|
||||
function optimize() {
|
||||
if (config.General.readOnly) {
|
||||
return;
|
||||
}
|
||||
log.info("Optimizing database");
|
||||
const start = Date.now();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user