pgsql: pg_waldump: Remove file-level global WalSegSz.
pgsql: pg_waldump: Remove file-level global WalSegSz.
От:
Robert Haas <rhaas@postgresql.org>
Дата:
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 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(-)