0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-01-06 12:05:51 +00:00
libsql/libsql-sqlite3
Pekka Enberg 369438f20f libsql-sqlite3: Fix problem with disappearing WAL frames
We have a problem with WAL API where in some scenarios, we seem to lose
WAL frames that were already applied. However, inspecting the external
WAL frame, the sync mechanics work fine and the problem is in SQLite's
in-memory state.

As it turnws out, the sqlite3PagerWalBeginCommit() function first begins
a read transaction and then upgrades it to a write transaction. However,
sqlite3PagerWalEndCommit() only ends the write transaction and therefore
leaves the pager in READER state. Let's call pager_unlock() to switch to
OPEN stte, fixing the issue of disappearing frames.
2024-11-28 12:36:19 +02:00
..
2023-10-16 13:58:16 +02:00
2024-07-25 13:45:06 +03:00
2023-10-16 13:58:16 +02:00
2023-10-16 15:25:18 +02:00
2023-10-16 13:58:16 +02:00
2024-11-24 18:13:30 +04:00
2023-10-16 13:58:16 +02:00
2023-10-16 13:58:16 +02:00
2023-10-16 13:58:16 +02:00
2023-10-16 13:58:16 +02:00
2024-07-25 13:45:06 +03:00
2024-07-25 13:45:06 +03:00
2023-10-16 13:58:16 +02:00
2023-10-16 13:58:16 +02:00
2023-11-15 14:54:26 +01:00
2023-10-16 13:58:16 +02:00
2023-10-16 13:58:16 +02:00
2023-10-16 13:58:16 +02:00
2023-10-16 13:58:16 +02:00
2024-07-25 13:45:06 +03:00
2023-10-16 13:58:16 +02:00
2024-07-25 13:45:06 +03:00
2024-07-25 13:45:06 +03:00
2024-07-25 13:45:06 +03:00
2023-10-16 13:58:16 +02:00
2023-10-16 13:58:16 +02:00
2023-10-16 13:58:16 +02:00
2023-10-16 13:58:16 +02:00
2023-10-16 13:58:16 +02:00
2023-10-16 13:58:16 +02:00
2024-07-25 13:45:06 +03:00