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

Commit93d573d

Browse files
committed
Remove unused argument "txn" in maybe_send_schema().
Commit4648243 added the argument "txn" into maybe_send_schema()though it was not used.Author: Hou ZhijieReviewed-by: Fujii MasaoDiscussion:https://postgr.es/m/OS0PR01MB5716146E43928FB92D45D29794EC9@OS0PR01MB5716.jpnprd01.prod.outlook.com
1 parent226ec49 commit93d573d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/replication/pgoutput/pgoutput.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ pgoutput_rollback_prepared_txn(LogicalDecodingContext *ctx,
494494
*/
495495
staticvoid
496496
maybe_send_schema(LogicalDecodingContext*ctx,
497-
ReorderBufferTXN*txn,ReorderBufferChange*change,
497+
ReorderBufferChange*change,
498498
Relationrelation,RelationSyncEntry*relentry)
499499
{
500500
boolschema_sent;
@@ -671,7 +671,7 @@ pgoutput_change(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
671671
/* Avoid leaking memory by using and resetting our own context */
672672
old=MemoryContextSwitchTo(data->context);
673673

674-
maybe_send_schema(ctx,txn,change,relation,relentry);
674+
maybe_send_schema(ctx,change,relation,relentry);
675675

676676
/* Send the data */
677677
switch (change->action)
@@ -808,7 +808,7 @@ pgoutput_truncate(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
808808
continue;
809809

810810
relids[nrelids++]=relid;
811-
maybe_send_schema(ctx,txn,change,relation,relentry);
811+
maybe_send_schema(ctx,change,relation,relentry);
812812
}
813813

814814
if (nrelids>0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp