Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaf51b2f

Browse files
author
Amit Kapila
committed
Remove unused xid parameter.
Commit6c2003f removes the use of transaction id's for exportingsnapshots. This commit removes one unused xid parameter left behind inSnapBuildGetOrBuildSnapshot.Author: Melih MutluReviewed-By: Zhang MingliDiscussion:https://postgr.es/m/CAGPVpCTqZRoDKgCycw+eYi+Gq41rN9pU-gntgTd7wfsNDpPL3Q@mail.gmail.com
1 parent7d70809 commitaf51b2f

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,TransactionIdxid)
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
externvoidSnapBuildResetExportedSnapshotState(void);
7474

7575
externSnapBuildStateSnapBuildCurrentState(SnapBuild*builder);
76-
externSnapshotSnapBuildGetOrBuildSnapshot(SnapBuild*builder,
77-
TransactionIdxid);
76+
externSnapshotSnapBuildGetOrBuildSnapshot(SnapBuild*builder);
7877

7978
externboolSnapBuildXactNeedsSkip(SnapBuild*builder,XLogRecPtrptr);
8079
externXLogRecPtrSnapBuildGetTwoPhaseAt(SnapBuild*builder);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp