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

Fix over-length source code lines in pager.c.

FossilOrigin-Name: 14de3d39267a4005a0fa900bab4adc4c104e4084
This commit is contained in:
drh
2015-06-29 18:14:02 +00:00
parent ef648698c8
commit e399ac2e1e
3 changed files with 32 additions and 31 deletions

View File

@@ -1,5 +1,5 @@
C Fix\sminor\sproblems\sin\sthe\sota\sdemo\sapplication. C Fix\sover-length\ssource\scode\slines\sin\spager.c.
D 2015-06-29T15:41:50.815 D 2015-06-29T18:14:02.529
F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
F Makefile.in 285a0a234ed7610d431d91671c136098c2bd86a9 F Makefile.in 285a0a234ed7610d431d91671c136098c2bd86a9
F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -314,7 +314,7 @@ F src/os_setup.h c9d4553b5aaa6f73391448b265b89bed0b890faa
F src/os_unix.c 23eb5f56fac54d8fe0cb204291f3b3b2d94f23fc F src/os_unix.c 23eb5f56fac54d8fe0cb204291f3b3b2d94f23fc
F src/os_win.c 27cc135e2d0b8b1e2e4944db1e2669a6a18fa0f8 F src/os_win.c 27cc135e2d0b8b1e2e4944db1e2669a6a18fa0f8
F src/os_win.h eb7a47aa17b26b77eb97e4823f20a00b8bda12ca F src/os_win.h eb7a47aa17b26b77eb97e4823f20a00b8bda12ca
F src/pager.c 7e745749c375e3c35ef92051e2c1f7425cfcb3de F src/pager.c 81099edb051a46330cb4f526aaa782ac31d5f576
F src/pager.h c3476e7c89cdf1c6914e50a11f3714e30b4e0a77 F src/pager.h c3476e7c89cdf1c6914e50a11f3714e30b4e0a77
F src/parse.y 6d60dda8f8d418b6dc034f1fbccd816c459983a8 F src/parse.y 6d60dda8f8d418b6dc034f1fbccd816c459983a8
F src/pcache.c 994f15b465337a079feb04aac34c199dbc610247 F src/pcache.c 994f15b465337a079feb04aac34c199dbc610247
@@ -1364,7 +1364,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1
F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
F tool/warnings.sh 48bd54594752d5be3337f12c72f28d2080cb630b F tool/warnings.sh 48bd54594752d5be3337f12c72f28d2080cb630b
F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
P ab7aeeead395a05b91a921ef9ebe9252fffad667 P 6aaaec6e63cdf713b0d67e24a892088ff251c82a
R cf8c1f0870ca2f41a49b1e8959952d21 R 00b6fa5674088c81a24f73d93b973d9c
U dan U drh
Z 5ca3fbc5a6a82f3d1d52496384d0d8e0 Z 08a04bd3dea2dc293fe05f9e7c08921e

View File

@@ -1 +1 @@
6aaaec6e63cdf713b0d67e24a892088ff251c82a 14de3d39267a4005a0fa900bab4adc4c104e4084

View File

@@ -540,11 +540,11 @@ struct PagerSavepoint {
** while it is being traversed by code in pager_playback(). The SPILLFLAG_OFF ** while it is being traversed by code in pager_playback(). The SPILLFLAG_OFF
** case is a user preference. ** case is a user preference.
** **
** If the SPILLFLAG_NOSYNC bit is set, writing to the database from pagerStress() ** If the SPILLFLAG_NOSYNC bit is set, writing to the database from
** is permitted, but syncing the journal file is not. This flag is set ** pagerStress() is permitted, but syncing the journal file is not.
** by sqlite3PagerWrite() when the file-system sector-size is larger than ** This flag is set by sqlite3PagerWrite() when the file-system sector-size
** the database page-size in order to prevent a journal sync from happening ** is larger than the database page-size in order to prevent a journal sync
** in between the journalling of two pages on the same sector. ** from happening in between the journalling of two pages on the same sector.
** **
** subjInMemory ** subjInMemory
** **
@@ -647,7 +647,7 @@ struct Pager {
u8 doNotSpill; /* Do not spill the cache when non-zero */ u8 doNotSpill; /* Do not spill the cache when non-zero */
u8 subjInMemory; /* True to use in-memory sub-journals */ u8 subjInMemory; /* True to use in-memory sub-journals */
u8 bUseFetch; /* True to use xFetch() */ u8 bUseFetch; /* True to use xFetch() */
u8 hasBeenUsed; /* True if any content previously read from this pager*/ u8 hasBeenUsed; /* True if any content previously read */
Pgno dbSize; /* Number of pages in the database */ Pgno dbSize; /* Number of pages in the database */
Pgno dbOrigSize; /* dbSize before the current transaction */ Pgno dbOrigSize; /* dbSize before the current transaction */
Pgno dbFileSize; /* Number of pages in the database file */ Pgno dbFileSize; /* Number of pages in the database file */
@@ -1657,7 +1657,8 @@ static int writeMasterJournal(Pager *pPager, const char *zMaster){
|| (0 != (rc = sqlite3OsWrite(pPager->jfd, zMaster, nMaster, iHdrOff+4))) || (0 != (rc = sqlite3OsWrite(pPager->jfd, zMaster, nMaster, iHdrOff+4)))
|| (0 != (rc = write32bits(pPager->jfd, iHdrOff+4+nMaster, nMaster))) || (0 != (rc = write32bits(pPager->jfd, iHdrOff+4+nMaster, nMaster)))
|| (0 != (rc = write32bits(pPager->jfd, iHdrOff+4+nMaster+4, cksum))) || (0 != (rc = write32bits(pPager->jfd, iHdrOff+4+nMaster+4, cksum)))
|| (0 != (rc = sqlite3OsWrite(pPager->jfd, aJournalMagic, 8, iHdrOff+4+nMaster+8))) || (0 != (rc = sqlite3OsWrite(pPager->jfd, aJournalMagic, 8,
iHdrOff+4+nMaster+8)))
){ ){
return rc; return rc;
} }
@@ -4727,7 +4728,7 @@ int sqlite3PagerOpen(
act_like_temp_file: act_like_temp_file:
tempFile = 1; tempFile = 1;
pPager->eState = PAGER_READER; /* Pretend we already have a lock */ pPager->eState = PAGER_READER; /* Pretend we already have a lock */
pPager->eLock = EXCLUSIVE_LOCK; /* Pretend we are in EXCLUSIVE locking mode */ pPager->eLock = EXCLUSIVE_LOCK; /* Pretend we are in EXCLUSIVE mode */
pPager->noLock = 1; /* Do no locking */ pPager->noLock = 1; /* Do no locking */
readOnly = (vfsFlags&SQLITE_OPEN_READONLY); readOnly = (vfsFlags&SQLITE_OPEN_READONLY);
} }
@@ -5751,8 +5752,8 @@ static int pager_write(PgHdr *pPg){
** then end of the file, make sure it is marked as PGHDR_NEED_SYNC. ** then end of the file, make sure it is marked as PGHDR_NEED_SYNC.
*/ */
assert( (pPager->pInJournal!=0) == isOpen(pPager->jfd) ); assert( (pPager->pInJournal!=0) == isOpen(pPager->jfd) );
if( pPager->pInJournal!=0 /* Journal open */ if( pPager->pInJournal!=0
&& sqlite3BitvecTestNotNull(pPager->pInJournal, pPg->pgno)==0 /* pPg not in jrnl */ && sqlite3BitvecTestNotNull(pPager->pInJournal, pPg->pgno)==0
){ ){
assert( pagerUseWal(pPager)==0 ); assert( pagerUseWal(pPager)==0 );
if( pPg->pgno<=pPager->dbOrigSize ){ if( pPg->pgno<=pPager->dbOrigSize ){
@@ -5792,8 +5793,8 @@ static int pager_write(PgHdr *pPg){
** a write. ** a write.
** **
** Usually, the sector size is less than or equal to the page size, in which ** Usually, the sector size is less than or equal to the page size, in which
** case pages can be individually written. This routine only runs in the exceptional ** case pages can be individually written. This routine only runs in the
** case where the page size is smaller than the sector size. ** exceptional case where the page size is smaller than the sector size.
*/ */
static SQLITE_NOINLINE int pagerWriteLargeSector(PgHdr *pPg){ static SQLITE_NOINLINE int pagerWriteLargeSector(PgHdr *pPg){
int rc = SQLITE_OK; /* Return code */ int rc = SQLITE_OK; /* Return code */