tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
11.26k stars 286 forks source link

fix overflow in row counters #1525

Closed MarinPostma closed 4 months ago

MarinPostma commented 4 months ago

The rows read/written counters are stores in a u32, that can overflow. This PR "fixes" that by saturating the counter. This is a temporary fix, since increasing the size of the counter is more work than we are willing to put in right now.