mirror of
https://github.com/status-im/nim-eth.git
synced 2025-01-10 06:15:44 +00:00
3ddb498f2a
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.