]> git.ipfire.org Git - thirdparty/postgresql.git/commit
bufmgr: use I/O stats arguments in FlushUnlockedBuffer()
authorMelanie Plageman <melanieplageman@gmail.com>
Tue, 21 Apr 2026 21:47:22 +0000 (17:47 -0400)
committerMelanie Plageman <melanieplageman@gmail.com>
Tue, 21 Apr 2026 21:47:50 +0000 (17:47 -0400)
commit31b0544b32bc9e08c8c6775aed7ca2b808390f80
tree6c12143c2dac369bc5a0c7f0603fd8cb79dbe2b4
parent62407d26b7c9e619ed696fced88fdacc5d1ae522
bufmgr: use I/O stats arguments in FlushUnlockedBuffer()

FlushUnlockedBuffer() accepted io_object and io_context arguments but
hardcoded IOOBJECT_RELATION and IOCONTEXT_NORMAL when calling
FlushBuffer(). Pass them through instead. Also fix FlushBuffer() to use
its io_object parameter for I/O timing stats rather than hardcoding
IOOBJECT_RELATION.

Not actively broken since all current callers pass IOOBJECT_RELATION and
IOCONTEXT_NORMAL, so not backpatched.

Author: Chao Li <lic@highgo.com>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/BC97546F-5C15-42F2-AD57-CFACDB9657D0@gmail.com
src/backend/storage/buffer/bufmgr.c