Skip to content

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy