aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2020-04-08 11:37:27 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2020-04-08 11:37:27 +0300
commit1aac32df89eb19949050f6f27c268122833ad036 (patch)
tree7f1b7d61e1bdb19a5f9437d5198b63e4be4e2ecb /src/backend/access/transam/xlog.c
parent02a2e8b442002a698336954633b0ccc4e30061e6 (diff)
downloadpostgresql-1aac32df89eb19949050f6f27c268122833ad036.tar.gz
postgresql-1aac32df89eb19949050f6f27c268122833ad036.zip
Revert 0f5ca02f53
0f5ca02f53 introduces 3 new keywords. It appears to be too much for relatively small feature. Given now we past feature freeze, it's already late for discussion of the new syntax. So, revert. Discussion: https://postgr.es/m/28209.1586294824%40sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r--src/backend/access/transam/xlog.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 8a4c1743e55..740d7044b1d 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -42,7 +42,6 @@
#include "catalog/pg_database.h"
#include "commands/progress.h"
#include "commands/tablespace.h"
-#include "commands/wait.h"
#include "common/controldata_utils.h"
#include "executor/instrument.h"
#include "miscadmin.h"
@@ -7157,7 +7156,6 @@ StartupXLOG(void)
do
{
bool switchedTLI = false;
- XLogRecPtr minWaitedLSN;
#ifdef WAL_DEBUG
if (XLOG_DEBUG ||
@@ -7361,17 +7359,6 @@ StartupXLOG(void)
break;
}
- /*
- * If we replayed an LSN that someone was waiting for, set
- * latches in shared memory array to notify the waiter.
- */
- minWaitedLSN = WaitLSNGetMin();
- if (!XLogRecPtrIsInvalid(minWaitedLSN) &&
- minWaitedLSN <= XLogCtl->lastReplayedEndRecPtr)
- {
- WaitLSNSetLatch(XLogCtl->lastReplayedEndRecPtr);
- }
-
/* Else, try to fetch the next WAL record */
record = ReadRecord(xlogreader, LOG, false);
} while (record != NULL);