Commit 48bfeb24 authored by Andres Freund's avatar Andres Freund

Improve WritebackContextInit() comment and prototype argument names.

Author: Masahiko Sawada
Discussion: CAD21AoBD=Of1OzL90Xx4Q-3j=-2q7=S87cs75HfutE=eCday2w@mail.gmail.com
parent 548af97f
...@@ -4160,12 +4160,10 @@ ts_ckpt_progress_comparator(Datum a, Datum b, void *arg) ...@@ -4160,12 +4160,10 @@ ts_ckpt_progress_comparator(Datum a, Datum b, void *arg)
/* /*
* Initialize a writeback context, discarding potential previous state. * Initialize a writeback context, discarding potential previous state.
* *
* *max_coalesce is a pointer to a variable containing the current maximum * *max_pending is a pointer instead of an immediate value, so the coalesce
* number of writeback requests that will be coalesced into a bigger one. A * limits can easily changed by the GUC mechanism, and so calling code does
* value <= 0 means that no writeback control will be performed. max_pending * not have to check the current configuration. A value is 0 means that no
* is a pointer instead of an immediate value, so the coalesce limits can * writeback control will be performed.
* easily changed by the GUC mechanism, and so calling code does not have to
* check the current configuration.
*/ */
void void
WritebackContextInit(WritebackContext *context, int *max_pending) WritebackContextInit(WritebackContext *context, int *max_pending)
......
...@@ -300,7 +300,7 @@ extern CkptSortItem *CkptBufferIds; ...@@ -300,7 +300,7 @@ extern CkptSortItem *CkptBufferIds;
* Internal buffer management routines * Internal buffer management routines
*/ */
/* bufmgr.c */ /* bufmgr.c */
extern void WritebackContextInit(WritebackContext *context, int *max_coalesce); extern void WritebackContextInit(WritebackContext *context, int *max_pending);
extern void IssuePendingWritebacks(WritebackContext *context); extern void IssuePendingWritebacks(WritebackContext *context);
extern void ScheduleBufferTagForWriteback(WritebackContext *context, BufferTag *tag); extern void ScheduleBufferTagForWriteback(WritebackContext *context, BufferTag *tag);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment