0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-02-22 20:27:13 +00:00
libsql/libsql-ffi
Jussi Saurio 90f0751ff8 wal.c: do not ignore the result code of xCb in walCheckpoint
libsql exposes a WAL checkpoint callback that is called once for each
frame and right when checkpointing is about to finish.

before this change, the result code returned by the checkpoint callback
was ignored on the 'finish' invocation, which resulted in the checkpoint
completing successfully despite the callback returning an error.

this commit propagates the callback's error code and thus prevents the
wal_checkpoint() routine from returning SQLITE_OK in cases where the
callback failed.
2025-02-13 23:48:34 +02:00
..
2024-07-31 22:47:53 +02:00
2025-01-28 13:01:16 -03:00
2025-01-16 22:25:16 -05:00