8000 Remove duplicate assignment when initializing logical decoder context · postgrespro/postgres@5ed4b12 · GitHub
[go: up one dir, main page]

Skip to content < 8000 link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react.cbbd4414f8577721e220.module.css" />

Commit 5ed4b12

Browse files
committed
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
1 parent e12a472 commit 5ed4b12

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/backend/replication/logical/logical.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,6 @@ StartupDecodingContext(List *output_plugin_options,
178178
(errcode(ERRCODE_OUT_OF_MEMORY),
179179
errmsg("out of memory")));
180180

181-
ctx->reader->private_data = ctx;
182-
183181
ctx->reorder = ReorderBufferAllocate();
184182
ctx->snapshot_builder =
185183
AllocateSnapshotBuilder(ctx->reorder, xmin_horizon, start_lsn,

0 commit comments

Comments
 (0)
0