Skip to content

Commit be57f21

Browse files
author
Amit Kapila
committed
Remove two_phase variable from CreateReplicationSlotCmd struct.
Commit 19890a0 added the option to enable two_phase commits via pg_create_logical_replication_slot but didn't extend the support of same in replication protocol. However, by mistake, it added the two_phase variable in CreateReplicationSlotCmd which is required only when we extend the replication protocol. Reported-by: Jeff Davis Author: Ajin Cherian Reviewed-by: Amit Kapila Discussion: https://postgr.es/m/64b9f783c6e125f18f88fbc0c0234e34e71d8639.camel@j-davis.com
1 parent f3baaf2 commit be57f21

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/backend/replication/walsender.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ CreateReplicationSlot(CreateReplicationSlotCmd *cmd)
954954
*/
955955
ReplicationSlotCreate(cmd->slotname, true,
956956
cmd->temporary ? RS_TEMPORARY : RS_EPHEMERAL,
957-
cmd->two_phase);
957+
false);
958958
}
959959

960960
if (cmd->kind == REPLICATION_KIND_LOGICAL)

src/include/nodes/replnodes.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ typedef struct CreateReplicationSlotCmd
5656
ReplicationKind kind;
5757
char *plugin;
5858
bool temporary;
59-
bool two_phase;
6059
List *options;
6160
} CreateReplicationSlotCmd;
6261

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