1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Add the sqlite3_commit_status() API. For querying a connection for (a) the ranges of wal/wal2 frames written after a successful commit, and (b) the conflicting frame following a failed commit of a BEGIN CONCURRENT transaction.

FossilOrigin-Name: 4b08d4dad6b254a342353e3f765066c85cbc5450fe13501665c648627cca21cd
This commit is contained in:
dan
2023-06-19 18:16:19 +00:00
parent e36b69a347
commit d095b2c3d5
12 changed files with 581 additions and 33 deletions

View File

@@ -364,6 +364,12 @@ struct Btree {
#ifndef SQLITE_OMIT_SHARED_CACHE
BtLock lock; /* Object used to lock page 1 */
#endif
#ifndef SQLITE_OMIT_CONCURRENT
/* Return values for sqlite3_commit_status() requests:
** SQLITE_COMMIT_FIRSTFRAME, COMMIT_NFRAME.
*/
u32 aCommit[2];
#endif
};
/*