Commit 5ed4b123 authored by Michael Paquier's avatar Michael Paquier

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
parent e12a4726
...@@ -178,8 +178,6 @@ StartupDecodingContext(List *output_plugin_options, ...@@ -178,8 +178,6 @@ StartupDecodingContext(List *output_plugin_options,
(errcode(ERRCODE_OUT_OF_MEMORY), (errcode(ERRCODE_OUT_OF_MEMORY),
errmsg("out of memory"))); errmsg("out of memory")));
ctx->reader->private_data = ctx;
ctx->reorder = ReorderBufferAllocate(); ctx->reorder = ReorderBufferAllocate();
ctx->snapshot_builder = ctx->snapshot_builder =
AllocateSnapshotBuilder(ctx->reorder, xmin_horizon, start_lsn, AllocateSnapshotBuilder(ctx->reorder, xmin_horizon, start_lsn,
......
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