Skip to content

Commit 47b6ea5

Browse files
Amit Kapilapull[bot]
authored andcommitted
Remove unused xid parameter.
Commit 6c2003f removes the use of transaction id's for exporting snapshots. This commit removes one unused xid parameter left behind in SnapBuildGetOrBuildSnapshot. Author: Melih Mutlu Reviewed-By: Zhang Mingli Discussion: https://postgr.es/m/CAGPVpCTqZRoDKgCycw+eYi+Gq41rN9pU-gntgTd7wfsNDpPL3Q@mail.gmail.com
1 parent f1d8b87 commit 47b6ea5

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/backend/replication/logical/decode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ logicalmsg_decode(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
594594
SnapBuildXactNeedsSkip(builder, buf->origptr)))
595595
return;
596596

597-
snapshot = SnapBuildGetOrBuildSnapshot(builder, xid);
597+
snapshot = SnapBuildGetOrBuildSnapshot(builder);
598598
ReorderBufferQueueMessage(ctx->reorder, xid, snapshot, buf->endptr,
599599
message->transactional,
600600
message->message, /* first part of message is

src/backend/replication/logical/snapbuild.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ SnapBuildExportSnapshot(SnapBuild *builder)
694694
* Ensure there is a snapshot and if not build one for current transaction.
695695
*/
696696
Snapshot
697-
SnapBuildGetOrBuildSnapshot(SnapBuild *builder, TransactionId xid)
697+
SnapBuildGetOrBuildSnapshot(SnapBuild *builder)
698698
{
699699
Assert(builder->state == SNAPBUILD_CONSISTENT);
700700

src/include/replication/snapbuild.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ extern void SnapBuildClearExportedSnapshot(void);
7373
extern void SnapBuildResetExportedSnapshotState(void);
7474

7575
extern SnapBuildState SnapBuildCurrentState(SnapBuild *builder);
76-
extern Snapshot SnapBuildGetOrBuildSnapshot(SnapBuild *builder,
77-
TransactionId xid);
76+
extern Snapshot SnapBuildGetOrBuildSnapshot(SnapBuild *builder);
7877

7978
extern bool SnapBuildXactNeedsSkip(SnapBuild *builder, XLogRecPtr ptr);
8079
extern XLogRecPtr SnapBuildGetTwoPhaseAt(SnapBuild *builder);

0 commit comments

Comments
 (0)