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

Commit978b032

Browse files
committed
Fix function names in comments.
Commit3eb77eb renamed some functions, but forgot toupdate some comments referencing to those functions.This commit fixes those function names in the comments.Kyotaro Horiguchi
1 parent8725958 commit978b032

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

‎src/backend/postmaster/checkpointer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ typedef struct
137137

138138
staticCheckpointerShmemStruct*CheckpointerShmem;
139139

140-
/* interval for callingAbsorbFsyncRequests in CheckpointWriteDelay */
140+
/* interval for callingAbsorbSyncRequests in CheckpointWriteDelay */
141141
#defineWRITES_PER_ABSORB1000
142142

143143
/*

‎src/backend/storage/smgr/md.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ register_forget_request(RelFileNodeBackend rnode, ForkNumber forknum,
952952
}
953953

954954
/*
955-
*ForgetDatabaseFsyncRequests -- forget any fsyncs and unlinks for a DB
955+
*ForgetDatabaseSyncRequests -- forget any fsyncs and unlinks for a DB
956956
*/
957957
void
958958
ForgetDatabaseSyncRequests(Oiddbid)

‎src/backend/storage/sync/sync.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static MemoryContext pendingOpsCxt; /* context for the above */
7575
staticCycleCtrsync_cycle_ctr=0;
7676
staticCycleCtrcheckpoint_cycle_ctr=0;
7777

78-
/* Intervals for callingAbsorbFsyncRequests */
78+
/* Intervals for callingAbsorbSyncRequests */
7979
#defineFSYNCS_PER_ABSORB10
8080
#defineUNLINKS_PER_ABSORB10
8181

@@ -215,9 +215,9 @@ SyncPostCheckpoint(void)
215215
pfree(entry);
216216

217217
/*
218-
* As inProcessFsyncRequests, we don't want to stop absorbing fsync
218+
* As inProcessSyncRequests, we don't want to stop absorbing fsync
219219
* requests for along time when there are many deletions to be done.
220-
* We can safely callAbsorbFsyncRequests() at this point in the loop
220+
* We can safely callAbsorbSyncRequests() at this point in the loop
221221
* (note it might try to delete list entries).
222222
*/
223223
if (--absorb_counter <=0)
@@ -284,7 +284,7 @@ ProcessSyncRequests(void)
284284
* eventually wrap the counter around to the point where an old entry
285285
* might appear new, causing us to skip it, possibly allowing a checkpoint
286286
* to succeed that should not have. To forestall wraparound, any time the
287-
* previousProcessFsyncRequests() failed to complete, run through the
287+
* previousProcessSyncRequests() failed to complete, run through the
288288
* table and forcibly set cycle_ctr = sync_cycle_ctr.
289289
*
290290
* Think not to merge this loop with the main loop, as the problem is

‎src/common/rmtree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ rmtree(const char *path, bool rmtopdir)
6868
* This is not an academic possibility. One scenario where this
6969
* happens is when bgwriter has a pending unlink request for a file in
7070
* a database that's being dropped. In dropdb(), we call
71-
*ForgetDatabaseFsyncRequests() to flush out any such pending unlink
71+
*ForgetDatabaseSyncRequests() to flush out any such pending unlink
7272
* requests, but because that's asynchronous, it's not guaranteed that
7373
* the bgwriter receives the message in time.
7474
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp