log checkpoint finishing for gathering information on wal/shm file bug

This commit is contained in:
Victor Shyba 2020-12-31 16:11:22 -03:00
parent 82a030e6ff
commit b882f1a010

View file

@ -124,6 +124,7 @@ class AIOSQLite:
def __checkpoint_and_close(conn: sqlite3.Connection):
conn.execute("PRAGMA WAL_CHECKPOINT(FULL);")
log.info("DB checkpoint finished.")
conn.close()
await asyncio.get_event_loop().run_in_executor(
self.writer_executor, __checkpoint_and_close, self.writer_connection)