1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Move the implementation of VACUUM into a separate source file. (CVS 901)

FossilOrigin-Name: b123c165fd3d0a5a86ee8a7baa669105dafb481a
This commit is contained in:
drh
2003-04-06 20:52:32 +00:00
parent 73509eee84
commit e1051c653e
6 changed files with 24 additions and 31 deletions

View File

@@ -18,7 +18,7 @@
** file simultaneously, or one process from reading the database while
** another is writing.
**
** @(#) $Id: pager.c,v 1.80 2003/04/06 20:44:45 drh Exp $
** @(#) $Id: pager.c,v 1.81 2003/04/06 20:52:32 drh Exp $
*/
#include "os.h" /* Must be first to enable large file support */
#include "sqliteInt.h"
@@ -2056,13 +2056,13 @@ int sqlitepager_rename(Pager *pPager, const char *zNewName){
memcpy(zJournal, zNew, nName);
strcpy(&zJournal[nName], "-journal");
if( pPager->journalOpen ){
rc = sqliteOsRename(pPager->zJournal, zJournal);
rc = sqliteOsFileRename(pPager->zJournal, zJournal);
if( rc ){
sqliteFree(zNew);
return rc;
}
}
rc = sqliteOsRename(pPager->zFilename, zNew);
rc = sqliteOsFileRename(pPager->zFilename, zNew);
if( rc ){
sqliteFree(zNew);
return rc;