aboutsummaryrefslogtreecommitdiff
path: root/src/backup.c
Commit message (Collapse)AuthorAge
...
* When copying a rollback mode database over a WAL database using the backup ↵dan2011-08-23
| | | | | API, leave the destination database in WAL mode (instead of switching it to rollback mode). Fix for [af95b8c609]. FossilOrigin-Name: 35e6ac18e3d030095da57fff87a288939e9be93f
* Remove an always-true conditional. Replace it with an assert().drh2011-04-09
| | | FossilOrigin-Name: 1c2f0f8477bcf251fe874a2cfae4d7a403cb88ff
* Do not do a backup if the number of reserved bytes in the source anddrh2011-04-09
| | | | | destination do not match. Try to make the match, but if unable fail. FossilOrigin-Name: 0ca8a2332b28d88585dc890e5162b095e783fc20
* Begin a series of changes designed to reduce the scope and frequency ofdrh2011-04-02
| | | | | | | | | | | invalidating schemas. Design goals are that the internal schema should never be deleted out from under a prepared statement that is running and that all prepared statements should be expired if the schema is invalidated. At the same time, minimize the number of schema invalidations. This change merely revises the sqlite3ResetInternalSchema() function to use -1 as the wildcard for "all" rather than 0, so that we can reset the main schema independently of all the others. FossilOrigin-Name: 6a8ad6e31e0d2b8a5ace38faf0efd805155ee5f3
* Fix a problem whereby following an IO error in CommitPhaseTwo() of a ↵dan2011-03-29
| | | | | multi-file transaction the b-tree layer could be left in TRANS_WRITE state, causing problems later on. FossilOrigin-Name: dbe569a099c2855480e35c0cc4d9332821ad80da
* Add a missing call to sqlite3PagerSync() removed by [ce552d975] to the ↵dan2011-01-25
| | | | | backup code. FossilOrigin-Name: 1965b85318c1fac62fae9691059021b298c17dde
* On a backup from a smaller to a larger page size, do not begin committingdrh2011-01-16
| | | | | | the transaction until the source pages after the pending byte have been copied. FossilOrigin-Name: 612e2599d3e1a17c268402fce018a53dee6dffe1
* Change the page size of the destination database in a backup, if it isdrh2011-01-11
| | | | | changeable, prior to starting the backup. FossilOrigin-Name: a5e4e0caad788318bc973e2550488a3b83128b8b
* Add evidence mark comments to source code. Add additional information to thedrh2010-08-31
| | | | | | documentation of sqlite3_release_memory(). Fix a minor inefficiency in mem1.c that was discovered while writing requirements tests. FossilOrigin-Name: 53b0c03fd33d2d8141fd386de5493fec64456042
* Do not allow a backup to change the page size if a codec is in use.drh2010-08-20
| | | FossilOrigin-Name: 5523ecd32295c188e3bf5dbd57d92d2879461e32
* Add coverage test cases. Have sqlite3_backup_step() transform ↵dan2010-06-30
| | | | | SQLITE_IOERR_NOMEM to SQLITE_NOMEM before returning. FossilOrigin-Name: 5e19bc360e098ec06a72f4a86254d8e62e93ea57
* Refactor and simplify the logic used to change journalmode.drh2010-06-11
| | | FossilOrigin-Name: 95cc3f6fdec5494560c3cd4439d06870d1c62506
* Do not compare page sizes on source and destination of backup untildrh2010-05-05
| | | | | | transactions are started and the page sizes are locked. This is a fix to check-in [7bd44794c4]. FossilOrigin-Name: ec7157788b16936b4b6e4642107b3c86aa44df24
* Prohibit backup if the destination is using WAL and has a different pagedrh2010-05-05
| | | | | size from the source. FossilOrigin-Name: 7bd44794c482beee16c684712545275e2bf63dfa
* Continuing refinements to the filesize-in-header enhancement.drh2010-03-30
| | | FossilOrigin-Name: 79e22b95038c50b9b7f35e09262805ff6338b59b
* Log all error messages if logging is enabled.drh2010-02-22
| | | FossilOrigin-Name: a8076aede33c07e9a2aaa05be8a888f37b45e41c
* Remove the obsolete "$Id:$" RCS identifier strings from the source code.drh2009-11-10
| | | FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
* Fix the backup logic so that it detects a failure to sqlite3BtreeUpdateMeta()drh2009-07-06
| | | | | and reports that failure back up to the top level. (CVS 6851) FossilOrigin-Name: 471b92f2514aedecb5773825a7ae472190375727
* Cause opening a transaction on a sharable b-tree module automatically obtain ↵danielk19772009-07-02
| | | | | a read-lock on page 1. This means there is no way for sqlite3BtreeGetMeta() to fail. (CVS 6836) FossilOrigin-Name: e3c055f167f895ae45858de9d9d8a264df2f36b6
* Define a set of constants to use as the "index" argument to ↵danielk19772009-06-03
| | | | | sqlite3BtreeGetMeta and UpdateMeta. This makes some parts of the code easier to follow. (CVS 6709) FossilOrigin-Name: 6dbf4eca00f845baa7200aba421d0bc158ba96aa
* Further reductions in the amount of stack space required. (CVS 6707)drh2009-06-02
| | | FossilOrigin-Name: 04bad9eb6dd8bf7cafc9f3918b676e95d5b1c984
* Change the sqlite3_backup_finish() interface so that calling it withdrh2009-05-14
| | | | | | a NULL pointer is a harmless no-op. One other change to backup.c to facilitate full coverage testing. (CVS 6638) FossilOrigin-Name: 06bc89177b3af20751d9567a68551d2d31c3fe8b
* When locking a database file, check if any backup objects need to be ↵danielk19772009-05-13
| | | | | restarted even if the page cache is empty. Ticket #3858. (CVS 6632) FossilOrigin-Name: 90309008c35494c7a075fe76f7eb96b09a01d01b
* Add the sqlite3_unlock_notify() API. (CVS 6348)danielk19772009-03-16
| | | FossilOrigin-Name: b649a6cc5bfefddd6a04b1183647d2923e0a0daa
* Changes to remove some compiler warnings from MSVC. (CVS 6294)shane2009-02-16
| | | FossilOrigin-Name: 68f15442e8db364952d30daf4ce60c6b938f5906
* Fix a compiler warning in backup.c. (CVS 6293)drh2009-02-16
| | | FossilOrigin-Name: 82222fbf5d5a085ce3e2c172c648a4c6d9750626
* Fix some edge cases with backing up databases that are exactly PENDING_BYTE ↵danielk19772009-02-12
| | | | | bytes in size, or just slightly larger. (CVS 6288) FossilOrigin-Name: 2fc450e8e60248d6111d0b0d2b8f2344f5b89bca
* Fix a problem in backup.c causing OsTruncate() to be called with an argument ↵danielk19772009-02-09
| | | | | larger than the current file-size. (CVS 6271) FossilOrigin-Name: b34bde80c7e2028baf7ba2ff26e587a63a170f3d
* Changes to the backup API: (1) if a negative number is passed as the second ↵danielk19772009-02-06
| | | | | argument to backup_step(), this is interpreted as "copy all remaining pages" and (2) if backup_finish() is called after backup_step() fails with a BUSY or LOCKED error, then this error is also returned by backup_finish() (same handling as for other errors encountered by backup_step()). (CVS 6266) FossilOrigin-Name: 9b8c8b18cf6b7d44d5fd64760537bc030097756b
* Simplify wording of backup API error message. Decapitalize some otherdrh2009-02-04
| | | | | error messages. (CVS 6256) FossilOrigin-Name: f92405afb649b698b735b423cd9195d4f8f137c9
* The sqlite3_backup_init() interface must lock the destination in case itdrh2009-02-04
| | | | | needs to change the error message. (CVS 6255) FossilOrigin-Name: 572378d3a29c7d55fa4a15df14800c26d6c563a1
* Remove compiler warnings under MSVC. (CVS 6249)shane2009-02-04
| | | FossilOrigin-Name: 6301f08a2b32289a49c4af994f2770318c444b49
* Correction to check-ins (6246) and (6247): The backup object might notdrh2009-02-03
| | | | | | | | | hold a valid destination connection pointer. Also, do not reset the page cache when establishing a read-lock while there is a persistent or truncated journal, only if there is a journal that really needs to rollback. Otherwise backups always reset whenever the source database file is read. (CVS 6248) FossilOrigin-Name: 7f827ba9d7af2dfe44aed386b4407716c85daf5e
* A backup must clear the internal schema of the destination database sodrh2009-02-03
| | | | | that the schema will be reloaded for the next sqlite3_prepare() (CVS 6247) FossilOrigin-Name: 76f23a4394574e31f237e55c641bc70534f44d97
* Must hold mutex on the destination during backups. Add documentation todrh2009-02-03
| | | | | | warn programmers that attempting to use the destination connection during a backup can lead to deadlock. (CVS 6246) FossilOrigin-Name: 5f6c06b974f26532264467ace603b6f1f830fba9
* Commit first version of the 'backup' feature. (CVS 6241)danielk19772009-02-03
FossilOrigin-Name: 663479b417fc06ba1790a544f28694f8797cee57