1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

For the showdb utility program, more accurate detection of when the database

is in autovacuum mode for the "pgidx" subcommand.

FossilOrigin-Name: 9ce2192b81a81bb8928e3184664694ed2f863ce41c2777cdc35e6b61486aea46
This commit is contained in:
drh
2020-01-14 13:24:14 +00:00
parent 76c1206845
commit c1f73e29bf
3 changed files with 8 additions and 8 deletions

View File

@ -956,7 +956,7 @@ static void page_usage_freelist(int pgno){
** Determine pages used as PTRMAP pages
*/
static void page_usage_ptrmap(unsigned char *a){
if( a[55] ){
if( decodeInt32(a+52) ){
int usable = g.pagesize - a[20];
int pgno = 2;
int perPage = usable/5;