forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2eb1fc8
committed
pg_checksums: Fix progress reporting.
pg_checksums uses two counters, total size and current size,to calculate the progress. Previously the progress thatpg_checksums reported could not reach 100% at the end.The cause of this issue was that the sizes of only pages excludingnew ones in each file were counted as the current sizewhile the size of each file is counted as the total size.That is, the total size of all new pages could be reportedas the difference between the total size and current size.This commit fixes this issue by making pg_checksums countthe sizes of all pages including new ones in each file asthe current size.Back-patch to v12 where progress reporting was added to pg_checksums.Reported-by: Shinya KatoAuthor: Shinya KatoReviewed-by: Fujii MasaoDiscussion:https://postgr.es/m/TYAPR01MB289656B1ACA0A5E7CAD07BE3C47A9@TYAPR01MB2896.jpnprd01.prod.outlook.com1 parent53aafdb commit2eb1fc8
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
229 | 229 |
| |
230 | 230 |
| |
231 | 231 |
| |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
232 | 240 |
| |
233 | 241 |
| |
234 | 242 |
| |
235 | 243 |
| |
236 | 244 |
| |
237 |
| - | |
238 | 245 |
| |
239 | 246 |
| |
240 | 247 |
| |
|
0 commit comments
Comments
(0)