mirror of
https://github.com/status-im/nim-eth.git
synced 2025-02-14 15:07:45 +00:00
If the database is locked for reading, as it is when step returns ROW, writes cannot checkpoint the wal leading to ever-increasing wal sizes and a long delay at shutdown. By resetting the transaction early, writes become more independent of reads, memory is released earlier and wal can be checkpointed.