1
0
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:
danielk1977
2008-09-08 15:35:06 +00:00
parent b9134e3e84
commit 4d60af9b0b
3 changed files with 10 additions and 9 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.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) &&