]> granicus.if.org Git - postgresql/commitdiff
Work a little harder on comments for walsender wakeup patch.
authorRobert Haas <rhaas@postgresql.org>
Mon, 2 Jul 2012 15:28:53 +0000 (11:28 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 2 Jul 2012 15:28:53 +0000 (11:28 -0400)
Per gripe from Tom Lane.

src/backend/access/transam/xlog.c

index 6ee50d01d52a1abf892790841c07d646929ebb32..89e6faee569896a5ee06b8be3a05fad60bc71418 100644 (file)
@@ -1027,7 +1027,7 @@ begin:;
 
                END_CRIT_SECTION();
 
-               /* wakeup the WalSnd now that we released the WALWriteLock */
+               /* wake up walsenders now that we've released heavily contended locks */
                WalSndWakeupProcessRequests();
                return RecPtr;
        }
@@ -1212,7 +1212,7 @@ begin:;
 
        END_CRIT_SECTION();
 
-       /* wakeup the WalSnd now that we outside contented locks */
+       /* wake up walsenders now that we've released heavily contended locks */
        WalSndWakeupProcessRequests();
 
        return RecPtr;
@@ -1800,7 +1800,7 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible, bool xlog_switch)
                        {
                                issue_xlog_fsync(openLogFile, openLogSegNo);
 
-                               /* signal that we need to wakeup WalSnd later */
+                               /* signal that we need to wakeup walsenders later */
                                WalSndWakeupRequest();
 
                                LogwrtResult.Flush = LogwrtResult.Write;                /* end of page */
@@ -1868,7 +1868,7 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible, bool xlog_switch)
 
                        issue_xlog_fsync(openLogFile, openLogSegNo);
 
-                       /* signal that we need to wakeup WalSnd later */
+                       /* signal that we need to wakeup walsenders later */
                        WalSndWakeupRequest();
                }
                LogwrtResult.Flush = LogwrtResult.Write;
@@ -2150,7 +2150,7 @@ XLogFlush(XLogRecPtr record)
 
        END_CRIT_SECTION();
 
-       /* wakeup the WalSnd now that we released the WALWriteLock */
+       /* wake up walsenders now that we've released heavily contended locks */
        WalSndWakeupProcessRequests();
 
        /*
@@ -2278,7 +2278,7 @@ XLogBackgroundFlush(void)
 
        END_CRIT_SECTION();
 
-       /* wakeup the WalSnd now that we released the WALWriteLock */
+       /* wake up walsenders now that we've released heavily contended locks */
        WalSndWakeupProcessRequests();
 
        return wrote_something;