pgsql: bufmgr: Turn BUFFER_LOCK_* into an enum - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: bufmgr: Turn BUFFER_LOCK_* into an enum
Date
Msg-id E1vQwSk-002fZf-2c@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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 <melanieplageman@gmail.com>
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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Make stats_ext test faster under cache-clobbering test condition
Next
From: Alexander Korotkov
Date:
Subject: pgsql: Fix incorrect assertion bound in WaitForLSN()