Fossil

Check-in [8b85b21a]
Login

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

Overview
Comment:Always run a checkpoint on all database files before exiting.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8b85b21a0ad6d653669b5a7e58efabb41ada566a
User & Date: drh 2010-08-18 15:27:43
Original Comment: Always run a checkpoint on all database files before existing.
Context
2010-08-18
16:51
Take care to close the separate dbConfig database connection when shutting down. check-in: c6187a83 user: drh tags: trunk
15:27
Always run a checkpoint on all database files before exiting. check-in: 8b85b21a user: drh tags: trunk
02:22
Update the internal SQLite to a 3.7.1 release candidate. check-in: 07afdea6 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/db.c.

900
901
902
903
904
905
906

907
908
909
910
911
912
913
  while( pAllStmt ){
    db_finalize(pAllStmt);
  }
  db_end_transaction(1);
  g.repositoryOpen = 0;
  g.localOpen = 0;
  g.configOpen = 0;

  sqlite3_close(g.db);
  g.db = 0;
}


/*
** Create a new empty repository database with the given name.







>







900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
  while( pAllStmt ){
    db_finalize(pAllStmt);
  }
  db_end_transaction(1);
  g.repositoryOpen = 0;
  g.localOpen = 0;
  g.configOpen = 0;
  sqlite3_wal_checkpoint(g.db, 0);
  sqlite3_close(g.db);
  g.db = 0;
}


/*
** Create a new empty repository database with the given name.