mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Store the database size in pages in bytes 28..31 of the header. Currently
this is for forensic use only, but it might be used in the future. FossilOrigin-Name: 59f75bba028e1107ed41d447c27aef31a6656b68
This commit is contained in:
@@ -4489,6 +4489,10 @@ static int pager_incr_changecounter(Pager *pPager, int isDirectMode){
|
||||
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;
|
||||
|
Reference in New Issue
Block a user