Skip to content

gbak: Incorrect total statistics for restore #8391

@Noremos

Description

@Noremos

I restored a 74M database (~9401 pages), but the number of writes in the gbak output shows only 3087.

gbak -c -user SYSDBA ./mydb.fbk ./mydb.fdb -v -ST W
gbak: writes
gbak:      0 opened file ./mydb.fbk
gbak:      0 transportable backup -- data in XDR format
gbak:      0            backup file is compressed
gbak:      0 backup version is 11
gbak:    781 created database ./mydb.fdb, page_size 8192 bytes
gbak:      2 started transaction
gbak:      0 restoring domain RDB$1
gbak:      0 restoring domain RDB$2
...
gbak:     11 finishing, closing, and going home
gbak:   3087 total statistics
gbak:adjusting the ONLINE and FORCED WRITES flags

ll ./mydb.fdb
-rw-rw---- 1 art art 77012992 янв 15 12:59 ./mydb.fdb

77012992 / 8192 = 9401
9401 > 3087

The CCH logging clearly shows almost 10,000 writes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions