mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Fix a C++ism in pager.c (variable useAtomicWrite not declard at the top of its scope). (CVS 5683)
FossilOrigin-Name: a6dee85b823355cb381163c93c8366aa4395ae6a
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
** file simultaneously, or one process from reading the database while
|
||||
** another is writing.
|
||||
**
|
||||
** @(#) $Id: pager.c,v 1.487 2008/09/03 00:08:29 drh Exp $
|
||||
** @(#) $Id: pager.c,v 1.488 2008/09/08 15:35:07 danielk1977 Exp $
|
||||
*/
|
||||
#ifndef SQLITE_OMIT_DISKIO
|
||||
#include "sqliteInt.h"
|
||||
@@ -3662,8 +3662,9 @@ int sqlite3PagerCommitPhaseOne(
|
||||
** If the optimization can be used, then the journal file will never
|
||||
** be created for this transaction.
|
||||
*/
|
||||
int useAtomicWrite;
|
||||
pPg = sqlite3PcacheDirtyList(pPager->pPCache);
|
||||
int useAtomicWrite = (
|
||||
useAtomicWrite = (
|
||||
!zMaster &&
|
||||
pPager->journalOpen &&
|
||||
pPager->journalOff==jrnlBufferSize(pPager) &&
|
||||
|
Reference in New Issue
Block a user