Commit 82cdd2df authored by Robert Haas's avatar Robert Haas

Work a little harder on comments for walsender wakeup patch.

Per gripe from Tom Lane.
parent f11e8be3
...@@ -1027,7 +1027,7 @@ begin:; ...@@ -1027,7 +1027,7 @@ begin:;
END_CRIT_SECTION(); END_CRIT_SECTION();
/* wakeup the WalSnd now that we released the WALWriteLock */ /* wake up walsenders now that we've released heavily contended locks */
WalSndWakeupProcessRequests(); WalSndWakeupProcessRequests();
return RecPtr; return RecPtr;
} }
...@@ -1212,7 +1212,7 @@ begin:; ...@@ -1212,7 +1212,7 @@ begin:;
END_CRIT_SECTION(); END_CRIT_SECTION();
/* wakeup the WalSnd now that we outside contented locks */ /* wake up walsenders now that we've released heavily contended locks */
WalSndWakeupProcessRequests(); WalSndWakeupProcessRequests();
return RecPtr; return RecPtr;
...@@ -1800,7 +1800,7 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible, bool xlog_switch) ...@@ -1800,7 +1800,7 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible, bool xlog_switch)
{ {
issue_xlog_fsync(openLogFile, openLogSegNo); issue_xlog_fsync(openLogFile, openLogSegNo);
/* signal that we need to wakeup WalSnd later */ /* signal that we need to wakeup walsenders later */
WalSndWakeupRequest(); WalSndWakeupRequest();
LogwrtResult.Flush = LogwrtResult.Write; /* end of page */ LogwrtResult.Flush = LogwrtResult.Write; /* end of page */
...@@ -1868,7 +1868,7 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible, bool xlog_switch) ...@@ -1868,7 +1868,7 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible, bool xlog_switch)
issue_xlog_fsync(openLogFile, openLogSegNo); issue_xlog_fsync(openLogFile, openLogSegNo);
/* signal that we need to wakeup WalSnd later */ /* signal that we need to wakeup walsenders later */
WalSndWakeupRequest(); WalSndWakeupRequest();
} }
LogwrtResult.Flush = LogwrtResult.Write; LogwrtResult.Flush = LogwrtResult.Write;
...@@ -2150,7 +2150,7 @@ XLogFlush(XLogRecPtr record) ...@@ -2150,7 +2150,7 @@ XLogFlush(XLogRecPtr record)
END_CRIT_SECTION(); END_CRIT_SECTION();
/* wakeup the WalSnd now that we released the WALWriteLock */ /* wake up walsenders now that we've released heavily contended locks */
WalSndWakeupProcessRequests(); WalSndWakeupProcessRequests();
/* /*
...@@ -2278,7 +2278,7 @@ XLogBackgroundFlush(void) ...@@ -2278,7 +2278,7 @@ XLogBackgroundFlush(void)
END_CRIT_SECTION(); END_CRIT_SECTION();
/* wakeup the WalSnd now that we released the WALWriteLock */ /* wake up walsenders now that we've released heavily contended locks */
WalSndWakeupProcessRequests(); WalSndWakeupProcessRequests();
return wrote_something; return wrote_something;
......
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