Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit48bfeb2

Browse files
committed
Improve WritebackContextInit() comment and prototype argument names.
Author: Masahiko SawadaDiscussion: CAD21AoBD=Of1OzL90Xx4Q-3j=-2q7=S87cs75HfutE=eCday2w@mail.gmail.com
1 parent548af97 commit48bfeb2

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-
externvoidWritebackContextInit(WritebackContext*context,int*max_coalesce);
303+
externvoidWritebackContextInit(WritebackContext*context,int*max_pending);
304304
externvoidIssuePendingWritebacks(WritebackContext*context);
305305
externvoidScheduleBufferTagForWriteback(WritebackContext*context,BufferTag*tag);
306306

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp