Skip to content

Commit 48bfeb2

Browse files
committed
Improve WritebackContextInit() comment and prototype argument names.
Author: Masahiko Sawada Discussion: CAD21AoBD=Of1OzL90Xx4Q-3j=-2q7=S87cs75HfutE=eCday2w@mail.gmail.com
1 parent 548af97 commit 48bfeb2

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/backend/storage/buffer/bufmgr.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4160,12 +4160,10 @@ ts_ckpt_progress_comparator(Datum a, Datum b, void *arg)
41604160
/*
41614161
* Initialize a writeback context, discarding potential previous state.
41624162
*
4163-
* *max_coalesce is a pointer to a variable containing the current maximum
4164-
* number of writeback requests that will be coalesced into a bigger one. A
4165-
* value <= 0 means that no writeback control will be performed. max_pending
4166-
* is a pointer instead of an immediate value, so the coalesce limits can
4167-
* easily changed by the GUC mechanism, and so calling code does not have to
4168-
* check the current configuration.
4163+
* *max_pending is a pointer instead of an immediate value, so the coalesce
4164+
* limits can easily changed by the GUC mechanism, and so calling code does
4165+
* not have to check the current configuration. A value is 0 means that no
4166+
* writeback control will be performed.
41694167
*/
41704168
void
41714169
WritebackContextInit(WritebackContext *context, int *max_pending)

src/include/storage/buf_internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ extern CkptSortItem *CkptBufferIds;
300300
* Internal buffer management routines
301301
*/
302302
/* bufmgr.c */
303-
extern void WritebackContextInit(WritebackContext *context, int *max_coalesce);
303+
extern void WritebackContextInit(WritebackContext *context, int *max_pending);
304304
extern void IssuePendingWritebacks(WritebackContext *context);
305305
extern void ScheduleBufferTagForWriteback(WritebackContext *context, BufferTag *tag);
306306

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy