Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dad97e0

Browse files
committed
Fix off-by-one error in pg_waldump, introduced in 5c279a6.
Per report by Bharath Rupireddy. Discussion: https://postgr.es/m/CALj2ACX+PWDK2MYjdu8CB1ot7OUSo6kd5-fkkEgduEsTSZjAEw@mail.gmail.com
1 parent 957aa4d commit dad97e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_waldump/pg_waldump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ XLogDumpDisplayStats(XLogDumpConfig *config, XLogDumpStats *stats)
720720
* calculate column totals.
721721
*/
722722

723-
for (ri = 0; ri < RM_MAX_ID; ri++)
723+
for (ri = 0; ri <= RM_MAX_ID; ri++)
724724
{
725725
total_count += stats->rmgr_stats[ri].count;
726726
total_rec_len += stats->rmgr_stats[ri].rec_len;

0 commit comments

Comments
 (0)