Fix function names in comments.
authorFujii Masao <fujii@postgresql.org>
Thu, 25 Apr 2019 14:43:48 +0000 (23:43 +0900)
committerFujii Masao <fujii@postgresql.org>
Thu, 25 Apr 2019 14:43:48 +0000 (23:43 +0900)
Commit 3eb77eba5a renamed some functions, but forgot to
update some comments referencing to those functions.
This commit fixes those function names in the comments.

Kyotaro Horiguchi

src/backend/postmaster/checkpointer.c
src/backend/storage/smgr/md.c
src/backend/storage/sync/sync.c
src/common/rmtree.c

index a1e04239ad0bfec5f12eefcb47f1789afa549a34..13f152b4731e7f7338dba7a73af1cbd9e4bea5c8 100644 (file)
@@ -137,7 +137,7 @@ typedef struct
 
 static CheckpointerShmemStruct *CheckpointerShmem;
 
-/* interval for calling AbsorbFsyncRequests in CheckpointWriteDelay */
+/* interval for calling AbsorbSyncRequests in CheckpointWriteDelay */
 #define WRITES_PER_ABSORB              1000
 
 /*
index 61a8f11469b8fe6f82428f92b5d07841a56408a6..52ca6eeb28f2488b8671e47a4d01904d04c4d955 100644 (file)
@@ -952,7 +952,7 @@ register_forget_request(RelFileNodeBackend rnode, ForkNumber forknum,
 }
 
 /*
- * ForgetDatabaseFsyncRequests -- forget any fsyncs and unlinks for a DB
+ * ForgetDatabaseSyncRequests -- forget any fsyncs and unlinks for a DB
  */
 void
 ForgetDatabaseSyncRequests(Oid dbid)
index f77519d7d1521d35f63335127d007f35f6d94f60..096735c8071ad9bd819198d94ccd8ea105897ac7 100644 (file)
@@ -75,7 +75,7 @@ static MemoryContext pendingOpsCxt; /* context for the above  */
 static CycleCtr sync_cycle_ctr = 0;
 static CycleCtr checkpoint_cycle_ctr = 0;
 
-/* Intervals for calling AbsorbFsyncRequests */
+/* Intervals for calling AbsorbSyncRequests */
 #define FSYNCS_PER_ABSORB              10
 #define UNLINKS_PER_ABSORB             10
 
@@ -215,9 +215,9 @@ SyncPostCheckpoint(void)
                pfree(entry);
 
                /*
-                * As in ProcessFsyncRequests, we don't want to stop absorbing fsync
+                * As in ProcessSyncRequests, we don't want to stop absorbing fsync
                 * requests for along time when there are many deletions to be done.
-                * We can safely call AbsorbFsyncRequests() at this point in the loop
+                * We can safely call AbsorbSyncRequests() at this point in the loop
                 * (note it might try to delete list entries).
                 */
                if (--absorb_counter <= 0)
@@ -284,7 +284,7 @@ ProcessSyncRequests(void)
         * eventually wrap the counter around to the point where an old entry
         * might appear new, causing us to skip it, possibly allowing a checkpoint
         * to succeed that should not have.  To forestall wraparound, any time the
-        * previous ProcessFsyncRequests() failed to complete, run through the
+        * previous ProcessSyncRequests() failed to complete, run through the
         * table and forcibly set cycle_ctr = sync_cycle_ctr.
         *
         * Think not to merge this loop with the main loop, as the problem is
index 3052d013ee936576f7512ddfdc9ef93a9703b9a5..b31da3adff896d7f2395100c340c553751fb8e0e 100644 (file)
@@ -68,7 +68,7 @@ rmtree(const char *path, bool rmtopdir)
                 * This is not an academic possibility. One scenario where this
                 * happens is when bgwriter has a pending unlink request for a file in
                 * a database that's being dropped. In dropdb(), we call
-                * ForgetDatabaseFsyncRequests() to flush out any such pending unlink
+                * ForgetDatabaseSyncRequests() to flush out any such pending unlink
                 * requests, but because that's asynchronous, it's not guaranteed that
                 * the bgwriter receives the message in time.
                 */