diff options
author | drh <drh@noemail.net> | 2013-12-14 18:24:46 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-12-14 18:24:46 +0000 |
commit | c8d985e09c2adc83a944889bd6e60e4e86864e3e (patch) | |
tree | 462d90e333961e2779b511e3ef74e0505699940a /src/backup.c | |
parent | 65106c77bb5436a3a4ab16193cc9b98b9c09e228 (diff) | |
parent | 4a8ee3dfe2afb5f0478b1bcdf94202cdf98a469d (diff) | |
download | sqlite-c8d985e09c2adc83a944889bd6e60e4e86864e3e.tar.gz sqlite-c8d985e09c2adc83a944889bd6e60e4e86864e3e.zip |
Merge in all recent preformance enhancements from trunk.
FossilOrigin-Name: 32477642d79615fb85680bdac812ad9655cf6902
Diffstat (limited to 'src/backup.c')
-rw-r--r-- | src/backup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backup.c b/src/backup.c index 1bac821f3..4a6bc7493 100644 --- a/src/backup.c +++ b/src/backup.c @@ -526,7 +526,7 @@ int sqlite3_backup_step(sqlite3_backup *p, int nPage){ /* Sync the database file to disk. */ if( rc==SQLITE_OK ){ - rc = sqlite3PagerSync(pDestPager); + rc = sqlite3PagerSync(pDestPager, 0); } }else{ sqlite3PagerTruncateImage(pDestPager, nDestTruncate); @@ -601,10 +601,10 @@ int sqlite3_backup_finish(sqlite3_backup *p){ /* Set the error code of the destination database handle. */ rc = (p->rc==SQLITE_DONE) ? SQLITE_OK : p->rc; - sqlite3Error(p->pDestDb, rc, 0); - - /* Exit the mutexes and free the backup context structure. */ if( p->pDestDb ){ + sqlite3Error(p->pDestDb, rc, 0); + + /* Exit the mutexes and free the backup context structure. */ sqlite3LeaveMutexAndCloseZombie(p->pDestDb); } sqlite3BtreeLeave(p->pSrc); |