Use an enum instead of two bools to indicate wal inclusion in base backups

Magnus Hagander <magnus@hagander.net>

Commit: 534b6f3ef29a11d19deeef6cef3bc8d4984de3c8
Author: Magnus Hagander <magnus@hagander.net>
Date: 2017-01-09T15:03:47Z
Releases: 10.0
Use an enum instead of two bools to indicate wal inclusion in base backups

This makes the code easier to read as it becomes more explicit what the
different allowed combinations really are.

Suggested by Michael Paquier

Files

PathChange+/−
src/bin/pg_basebackup/pg_basebackup.c modified +22 −16