Skip to content

Commit 82cdd2d

Browse files
committed
Work a little harder on comments for walsender wakeup patch.
Per gripe from Tom Lane.
1 parent f11e8be commit 82cdd2d

File tree

1 file changed

+6
-6
lines changed
  • src/backend/access/transam

1 file changed

+6
-6
lines changed

src/backend/access/transam/xlog.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ begin:;
10271027

10281028
END_CRIT_SECTION();
10291029

1030-
/* wakeup the WalSnd now that we released the WALWriteLock */
1030+
/* wake up walsenders now that we've released heavily contended locks */
10311031
WalSndWakeupProcessRequests();
10321032
return RecPtr;
10331033
}
@@ -1212,7 +1212,7 @@ begin:;
12121212

12131213
END_CRIT_SECTION();
12141214

1215-
/* wakeup the WalSnd now that we outside contented locks */
1215+
/* wake up walsenders now that we've released heavily contended locks */
12161216
WalSndWakeupProcessRequests();
12171217

12181218
return RecPtr;
@@ -1800,7 +1800,7 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible, bool xlog_switch)
18001800
{
18011801
issue_xlog_fsync(openLogFile, openLogSegNo);
18021802

1803-
/* signal that we need to wakeup WalSnd later */
1803+
/* signal that we need to wakeup walsenders later */
18041804
WalSndWakeupRequest();
18051805

18061806
LogwrtResult.Flush = LogwrtResult.Write; /* end of page */
@@ -1868,7 +1868,7 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible, bool xlog_switch)
18681868

18691869
issue_xlog_fsync(openLogFile, openLogSegNo);
18701870

1871-
/* signal that we need to wakeup WalSnd later */
1871+
/* signal that we need to wakeup walsenders later */
18721872
WalSndWakeupRequest();
18731873
}
18741874
LogwrtResult.Flush = LogwrtResult.Write;
@@ -2150,7 +2150,7 @@ XLogFlush(XLogRecPtr record)
21502150

21512151
END_CRIT_SECTION();
21522152

2153-
/* wakeup the WalSnd now that we released the WALWriteLock */
2153+
/* wake up walsenders now that we've released heavily contended locks */
21542154
WalSndWakeupProcessRequests();
21552155

21562156
/*
@@ -2278,7 +2278,7 @@ XLogBackgroundFlush(void)
22782278

22792279
END_CRIT_SECTION();
22802280

2281-
/* wakeup the WalSnd now that we released the WALWriteLock */
2281+
/* wake up walsenders now that we've released heavily contended locks */
22822282
WalSndWakeupProcessRequests();
22832283

22842284
return wrote_something;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy