/ Check-in [e1e3ca7e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Have the header comment for sqlite3Checkpoint() mention TRUNCATE along with the other three checkpoint types. No changes to code.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e1e3ca7ea43a68b9b57dc38d8855f63b63a53feb8128b666a1becf87a2c70341
User & Date: dan 2017-09-08 17:48:00
Context
2017-09-09
00:51
Fix harmless compiler warnings seen with MSVC. check-in: faa22e29 user: mistachkin tags: trunk
2017-09-08
17:48
Have the header comment for sqlite3Checkpoint() mention TRUNCATE along with the other three checkpoint types. No changes to code. check-in: e1e3ca7e user: dan tags: trunk
2017-09-07
09:56
Prevent a possible crash when trying to recover using a carefully corrupted \ and truncated rollback journal. (Test case in TH3) check-in: 02828d71 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/main.c.

  2169   2169   ** associated with the specific b-tree being checkpointed is taken by
  2170   2170   ** this function while the checkpoint is running.
  2171   2171   **
  2172   2172   ** If iDb is passed SQLITE_MAX_ATTACHED, then all attached databases are
  2173   2173   ** checkpointed. If an error is encountered it is returned immediately -
  2174   2174   ** no attempt is made to checkpoint any remaining databases.
  2175   2175   **
  2176         -** Parameter eMode is one of SQLITE_CHECKPOINT_PASSIVE, FULL or RESTART.
         2176  +** Parameter eMode is one of SQLITE_CHECKPOINT_PASSIVE, FULL, RESTART
         2177  +** or TRUNCATE.
  2177   2178   */
  2178   2179   int sqlite3Checkpoint(sqlite3 *db, int iDb, int eMode, int *pnLog, int *pnCkpt){
  2179   2180     int rc = SQLITE_OK;             /* Return code */
  2180   2181     int i;                          /* Used to iterate through attached dbs */
  2181   2182     int bBusy = 0;                  /* True if SQLITE_BUSY has been encountered */
  2182   2183   
  2183   2184     assert( sqlite3_mutex_held(db->mutex) );