mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-10 01:02:56 +03:00
Clarify some comments. No changes to code. (CVS 5049)
FossilOrigin-Name: 7f80539225b17a62e4aa09e6d514e3e9e1b22c36
This commit is contained in:
11
src/pager.c
11
src/pager.c
@@ -18,7 +18,7 @@
|
||||
** file simultaneously, or one process from reading the database while
|
||||
** another is writing.
|
||||
**
|
||||
** @(#) $Id: pager.c,v 1.434 2008/04/24 12:37:40 danielk1977 Exp $
|
||||
** @(#) $Id: pager.c,v 1.435 2008/04/25 12:25:42 drh Exp $
|
||||
*/
|
||||
#ifndef SQLITE_OMIT_DISKIO
|
||||
#include "sqliteInt.h"
|
||||
@@ -3084,6 +3084,15 @@ static PgHdr *pager_get_all_dirty_pages(Pager *pPager){
|
||||
** database with the same name. Just delete the journal.
|
||||
**
|
||||
** Return negative if unable to determine the status of the journal.
|
||||
**
|
||||
** This routine does not open the journal file to examine its
|
||||
** content. Hence, the journal might contain the name of a master
|
||||
** journal file that has been deleted, and hence not be hot. Or
|
||||
** the header of the journal might be zeroed out. This routine
|
||||
** does not discover these cases of a non-hot journal - if the
|
||||
** journal file exists and is not empty this routine assumes it
|
||||
** is hot. The pager_playback() routine will discover that the
|
||||
** journal file is not really hot and will no-op.
|
||||
*/
|
||||
static int hasHotJournal(Pager *pPager){
|
||||
sqlite3_vfs *pVfs = pPager->pVfs;
|
||||
|
Reference in New Issue
Block a user