pgsql: pg_waldump: Remove file-level global WalSegSz. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: pg_waldump: Remove file-level global WalSegSz.
Date
Msg-id E1vkka7-002ygX-1H@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
pg_waldump: Remove file-level global WalSegSz.

It's better style to pass the value around to just the places that
need it. This makes it easier to determine whether the value is
always properly initialized before use.

Reviewed-by: Amul Sul <sulamul@gmail.com>
Discussion: http://postgr.es/m/CAAJ_b94+wObPn-z1VECipnSFhjMJ+R2cpTmKVYLjyQuVn+B5QA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9a446d0256dc8f4afb4dba97734b46447c08d918

Modified Files
--------------
src/bin/pg_waldump/pg_waldump.c | 37 +++++++++++++++++++------------------
1 file changed, 19 insertions(+), 18 deletions(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Prevent invalidation of newly synced replication slots.
Next
From: Jeff Davis
Date:
Subject: pgsql: Fix crash introduced by incorrect backport 806555e300.