aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-04-16 15:08:38 +0900
committerMichael Paquier <michael@paquier.xyz>2019-04-16 15:08:38 +0900
commit5ed4b123b6a678bc6243047846870f7f46e9c67b (patch)
treecda2fa578e43f9a3a397e0722710fe265fbe69e9 /src
parente12a4726127b90b8fc5e75690fe4527f1866412d (diff)
downloadpostgresql-5ed4b123b6a678bc6243047846870f7f46e9c67b.tar.gz
postgresql-5ed4b123b6a678bc6243047846870f7f46e9c67b.zip
Remove duplicate assignment when initializing logical decoder context
The private data in the WAL reader is already getting set when allocating it. Author: Antonin Houska Reviewed-by: Tom Lane Discussion: https://postgr.es/m/30563.1555329094@localhost
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/logical/logical.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/backend/replication/logical/logical.c b/src/backend/replication/logical/logical.c
index 424fe86a1b6..acb4d9a1066 100644
--- a/src/backend/replication/logical/logical.c
+++ b/src/backend/replication/logical/logical.c
@@ -178,8 +178,6 @@ StartupDecodingContext(List *output_plugin_options,
(errcode(ERRCODE_OUT_OF_MEMORY),
errmsg("out of memory")));
- ctx->reader->private_data = ctx;
-
ctx->reorder = ReorderBufferAllocate();
ctx->snapshot_builder =
AllocateSnapshotBuilder(ctx->reorder, xmin_horizon, start_lsn,