git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1e24cf6) | patch
Make use of xlog_internal.h's macros in WAL-related utilities.
Thu, 2 Jul 2015 01:35:38 +0000 (10:35 +0900)
Thu, 2 Jul 2015 01:35:38 +0000 (10:35 +0900)
commit fb174687f7a730edcf301949785a6ac0dbfd70d0
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
contrib/pg_standby/pg_standby.c diff | blob | blame | history
src/bin/pg_archivecleanup/pg_archivecleanup.c diff | blob | blame | history
src/bin/pg_resetxlog/pg_resetxlog.c diff | blob | blame | history
src/include/access/xlog_internal.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /