-
- Downloads
Make use of xlog_internal.h's macros in WAL-related utilities.
Commit 179cdd09 added macros to check if a filename is a WAL segment or other such file. However there were still some instances of the strlen + strspn combination to check for that in WAL-related utilities like pg_archivecleanup. Those checks can be replaced with the macros. This patch makes use of the macros in those utilities and which would make the code a bit easier to read. Back-patch to 9.5. Michael Paquier
Showing
- contrib/pg_standby/pg_standby.c 7 additions, 17 deletionscontrib/pg_standby/pg_standby.c
- src/bin/pg_archivecleanup/pg_archivecleanup.c 8 additions, 14 deletionssrc/bin/pg_archivecleanup/pg_archivecleanup.c
- src/bin/pg_resetxlog/pg_resetxlog.c 5 additions, 6 deletionssrc/bin/pg_resetxlog/pg_resetxlog.c
- src/include/access/xlog_internal.h 13 additions, 6 deletionssrc/include/access/xlog_internal.h
Loading
Please register or sign in to comment