Remove duplicate check added by commit b2a5545bd6.
authorAmit Kapila <akapila@postgresql.org>
Sat, 27 Jun 2020 04:24:51 +0000 (09:54 +0530)
committerAmit Kapila <akapila@postgresql.org>
Sat, 27 Jun 2020 04:29:27 +0000 (09:59 +0530)
As this doesn't cause any harm so we decided to this clean up in HEAD only.

Author: Ádám Balogh
Discussion: https://postgr.es/m/VI1PR0702MB36631BD67559461AFDE1FEEE81920@VI1PR0702MB3663.eurprd07.prod.outlook.com

src/backend/access/transam/xlog.c

index e455384b5b081f47fe7247525c5b92d6a7f53856..fd93bcfaebaae5e38c51d3e22ae26ffb00923ed6 100644 (file)
@@ -7377,7 +7377,7 @@ StartupXLOG(void)
                     * Wake up any walsenders to notice that we are on a new
                     * timeline.
                     */
-                   if (switchedTLI && AllowCascadeReplication())
+                   if (AllowCascadeReplication())
                        WalSndWakeup();
                }