Disable exclusive mode

This commit is contained in:
2024-01-21 22:12:31 +08:00
parent 34785d30ef
commit 11e358d2c9

1
db.ts
View File

@@ -292,7 +292,6 @@ export class EhDb {
const DB = (await import("./utils/db_wasm.ts")).DbWasm;
this.db = new DB(this.#db_path);
}
this.db.execute("PRAGMA main.locking_mode=EXCLUSIVE;");
if (!this.#check_database()) this.#create_table();
if (!this.#use_ffi && this.#flock_enabled) {
this.#lock_file = join(this.#base_path, "db.lock");