mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(db): remove extraneous lock
This commit is contained in:
parent
f8e35aec7b
commit
f56c47b550
@ -36,7 +36,6 @@ class SqliteDatabase:
|
|||||||
if self.db_path == sqlite_memory:
|
if self.db_path == sqlite_memory:
|
||||||
return
|
return
|
||||||
initial_db_size = Path(self.db_path).stat().st_size
|
initial_db_size = Path(self.db_path).stat().st_size
|
||||||
self.lock.acquire()
|
|
||||||
self.conn.execute("VACUUM;")
|
self.conn.execute("VACUUM;")
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
final_db_size = Path(self.db_path).stat().st_size
|
final_db_size = Path(self.db_path).stat().st_size
|
||||||
|
Loading…
Reference in New Issue
Block a user