mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Add an implementation mark and fix a comment describing the OP_Checkpoint
opcode. FossilOrigin-Name: 7475b90c558157802b036162376fceacc1b9ab4a
This commit is contained in:
@@ -1824,8 +1824,10 @@ static int walCheckpoint(
|
||||
rc = walBusyLock(pWal, xBusy, pBusyArg, WAL_READ_LOCK(1), WAL_NREADER-1);
|
||||
if( rc==SQLITE_OK ){
|
||||
if( eMode==SQLITE_CHECKPOINT_TRUNCATE ){
|
||||
/* If this is a TRUNCATE checkpoint, also truncate the wal file
|
||||
** to zero bytes in size on disk.
|
||||
/* IMPLEMENTATION-OF: R-44699-57140 This mode works the same way as
|
||||
** SQLITE_CHECKPOINT_RESTART with the addition that it also
|
||||
** truncates the log file to zero bytes just prior to a
|
||||
** successful return.
|
||||
**
|
||||
** In theory, it might be safe to do this without updating the
|
||||
** wal-index header in shared memory, as all subsequent reader or
|
||||
|
Reference in New Issue
Block a user