Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Store the SQLite version number of the last writer in bytes 96..99 of the header. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
146d4f5d3459235d8b2d27a5d77beb76 |
User & Date: | drh 2010-03-19 16:55:47.000 |
Original Comment: | Store the SQLite version number of the last writer in bits 96..99 of the header. |
Context
2010-03-19
| ||
19:02 | Have the xUpdate() method of the rtree module virtual table implementation set the *pRowid output variable when inserting a row. Fix for [dd3ba6063a]. (check-in: f31d22489d user: dan tags: trunk) | |
16:55 | Store the SQLite version number of the last writer in bytes 96..99 of the header. (check-in: 146d4f5d34 user: drh tags: trunk) | |
16:52 | Make sure the in-journal boolean vector is cleared and released when ending a transaction. This fixes an obscure problem with the previous check-in. (check-in: 69d749d93d user: drh tags: trunk) | |
Changes
Changes to src/pager.c.
︙ | ︙ | |||
4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 | change_counter++; put32bits(((char*)pPgHdr->pData)+24, change_counter); /* Also store the current database size in bytes 28..31 */ assert( pPager->dbSizeValid ); put32bits(((char*)pPgHdr->pData)+28, pPager->dbSize); /* If running in direct mode, write the contents of page 1 to the file. */ if( DIRECT_MODE ){ const void *zBuf = pPgHdr->pData; assert( pPager->dbFileSize>0 ); rc = sqlite3OsWrite(pPager->fd, zBuf, pPager->pageSize, 0); if( rc==SQLITE_OK ){ pPager->changeCountDone = 1; | > > > > | 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 | change_counter++; put32bits(((char*)pPgHdr->pData)+24, change_counter); /* Also store the current database size in bytes 28..31 */ assert( pPager->dbSizeValid ); put32bits(((char*)pPgHdr->pData)+28, pPager->dbSize); /* Also store the SQLite version number in bytes 96..99 */ assert( pPager->dbSizeValid ); put32bits(((char*)pPgHdr->pData)+96, SQLITE_VERSION_NUMBER); /* If running in direct mode, write the contents of page 1 to the file. */ if( DIRECT_MODE ){ const void *zBuf = pPgHdr->pData; assert( pPager->dbFileSize>0 ); rc = sqlite3OsWrite(pPager->fd, zBuf, pPager->pageSize, 0); if( rc==SQLITE_OK ){ pPager->changeCountDone = 1; |
︙ | ︙ |