]> granicus.if.org Git - postgresql/commitdiff
Remove duplicate assignment when initializing logical decoder context
authorMichael Paquier <michael@paquier.xyz>
Tue, 16 Apr 2019 06:08:38 +0000 (15:08 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 16 Apr 2019 06:08:38 +0000 (15:08 +0900)
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

src/backend/replication/logical/logical.c

index 424fe86a1b68eb03803ec831f71e09ad0bbe34b4..acb4d9a10662d62b9c71788559b92db557bf1442 100644 (file)
@@ -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,