bufmgr: Turn BUFFER_LOCK_* into an enum It seems cleaner to use an enum to tie the different values together. It also helps to have a more descriptive type in the argument to various functions.
Reviewed-by: Melanie Plageman <[email protected]> Discussion: https://postgr.es/m/fvfmkr5kk4nyex56ejgxj3uzi63isfxovp2biecb4bspbjrze7@az2pljabhnff Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/156680055dc523425f28ff5e61acf0f5bc99294b Modified Files -------------- src/backend/storage/buffer/bufmgr.c | 4 ++-- src/include/storage/bufmgr.h | 13 ++++++++----- src/tools/pgindent/typedefs.list | 1 + 3 files changed, 11 insertions(+), 7 deletions(-)
