Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 93d573d

Browse files
committed
Remove unused argument "txn" in maybe_send_schema().
Commit 4648243 added the argument "txn" into maybe_send_schema() though it was not used. Author: Hou Zhijie Reviewed-by: Fujii Masao Discussion: https://postgr.es/m/OS0PR01MB5716146E43928FB92D45D29794EC9@OS0PR01MB5716.jpnprd01.prod.outlook.com
1 parent 226ec49 commit 93d573d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/replication/pgoutput/pgoutput.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ pgoutput_rollback_prepared_txn(LogicalDecodingContext *ctx,
494494
*/
495495
static void
496496
maybe_send_schema(LogicalDecodingContext *ctx,
497-
ReorderBufferTXN *txn, ReorderBufferChange *change,
497+
ReorderBufferChange *change,
498498
Relation relation, RelationSyncEntry *relentry)
499499
{
500500
bool schema_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)