forked from LBRYCommunity/lbry-sdk
log checkpoint finishing for gathering information on wal/shm file bug
This commit is contained in:
parent
82a030e6ff
commit
b882f1a010
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue