diff options
author | dan <dan@noemail.net> | 2011-11-06 05:06:13 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2011-11-06 05:06:13 +0000 |
commit | f673e09ef5b4898e65901a78217df652c459a930 (patch) | |
tree | 4d36b37918ba8152ab22a3f6b5963a038d08b0da /src | |
parent | ccdf1baebfc468672c9214c48245825f8fc65d4e (diff) | |
download | sqlite-f673e09ef5b4898e65901a78217df652c459a930.tar.gz sqlite-f673e09ef5b4898e65901a78217df652c459a930.zip |
Move function sqlite3PagerClearCache() out of the "ifndef SQLITE_OMIT_WAL" block and into an "ifndef SQLITE_OMIT_VACUUM" block.
FossilOrigin-Name: 5dbfaed8c3e09ea35033dacf6faa3d6a0202cc68
Diffstat (limited to 'src')
-rw-r--r-- | src/pager.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/pager.c b/src/pager.c index 63dda3ddf..6900610b2 100644 --- a/src/pager.c +++ b/src/pager.c @@ -6660,6 +6660,15 @@ sqlite3_backup **sqlite3PagerBackupPtr(Pager *pPager){ return &pPager->pBackup; } +#ifndef SQLITE_OMIT_VACUUM +/* +** Unless this is an in-memory or temporary database, clear the pager cache. +*/ +void sqlite3PagerClearCache(Pager *pPager){ + if( !MEMDB && pPager->tempFile==0 ) pager_reset(pPager); +} +#endif + #ifndef SQLITE_OMIT_WAL /* ** This function is called when the user invokes "PRAGMA wal_checkpoint", @@ -6836,13 +6845,6 @@ int sqlite3PagerCloseWal(Pager *pPager){ return rc; } -/* -** Unless this is an in-memory or temporary database, clear the pager cache. -*/ -void sqlite3PagerClearCache(Pager *pPager){ - if( !MEMDB && pPager->tempFile==0 ) pager_reset(pPager); -} - #ifdef SQLITE_HAS_CODEC /* ** This function is called by the wal module when writing page content |