aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/buffer
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2023-04-13 10:15:20 -0700
committerPeter Geoghegan <pg@bowt.ie>2023-04-13 10:15:20 -0700
commitd6f0f95a6bb7fa43731c6db83226a3c574041659 (patch)
tree0d7f1e9c600b8bc5162dd3a03ed16454e7638199 /src/backend/storage/buffer
parentf7431bca8b0138bdbce7025871560d39119565a0 (diff)
downloadpostgresql-d6f0f95a6bb7fa43731c6db83226a3c574041659.tar.gz
postgresql-d6f0f95a6bb7fa43731c6db83226a3c574041659.zip
Harmonize some more function parameter names.
Make sure that function declarations use names that exactly match the corresponding names from function definitions in a few places. These inconsistencies were all introduced relatively recently, after the code base had parameter name mismatches fixed in bulk (see commits starting with commits 4274dc22 and 035ce1fe). pg_bsd_indent still has a couple of similar inconsistencies, which I (pgeoghegan) have left untouched for now. Like all earlier commits that cleaned up function parameter names, this commit was written with help from clang-tidy.
Diffstat (limited to 'src/backend/storage/buffer')
-rw-r--r--src/backend/storage/buffer/bufmgr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c
index 7778dde3e57..b3163208335 100644
--- a/src/backend/storage/buffer/bufmgr.c
+++ b/src/backend/storage/buffer/bufmgr.c
@@ -5176,9 +5176,9 @@ TerminateBufferIO(BufferDesc *buf, bool clear_dirty, uint32 set_flag_bits)
* possible the error condition wasn't related to the I/O.
*/
void
-AbortBufferIO(Buffer buf)
+AbortBufferIO(Buffer buffer)
{
- BufferDesc *buf_hdr = GetBufferDescriptor(buf - 1);
+ BufferDesc *buf_hdr = GetBufferDescriptor(buffer - 1);
uint32 buf_state;
buf_state = LockBufHdr(buf_hdr);