aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2021-08-05 17:49:51 +0900
committerFujii Masao <fujii@postgresql.org>2021-08-05 17:49:51 +0900
commit93d573d86571d148e2d14415166ec6981d34ea9d (patch)
tree4e42a9d11ffff4ea76ee8ac211ce457c9f833307 /src
parent226ec49ffd78c0f246da8fceb3094991dd2302ff (diff)
downloadpostgresql-93d573d86571d148e2d14415166ec6981d34ea9d.tar.gz
postgresql-93d573d86571d148e2d14415166ec6981d34ea9d.zip
Remove unused argument "txn" in maybe_send_schema().
Commit 464824323e 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
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/pgoutput/pgoutput.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/replication/pgoutput/pgoutput.c b/src/backend/replication/pgoutput/pgoutput.c
index 286119c8c83..14d737fd933 100644
--- a/src/backend/replication/pgoutput/pgoutput.c
+++ b/src/backend/replication/pgoutput/pgoutput.c
@@ -494,7 +494,7 @@ pgoutput_rollback_prepared_txn(LogicalDecodingContext *ctx,
*/
static void
maybe_send_schema(LogicalDecodingContext *ctx,
- ReorderBufferTXN *txn, ReorderBufferChange *change,
+ ReorderBufferChange *change,
Relation relation, RelationSyncEntry *relentry)
{
bool schema_sent;
@@ -671,7 +671,7 @@ pgoutput_change(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
/* Avoid leaking memory by using and resetting our own context */
old = MemoryContextSwitchTo(data->context);
- maybe_send_schema(ctx, txn, change, relation, relentry);
+ maybe_send_schema(ctx, change, relation, relentry);
/* Send the data */
switch (change->action)
@@ -808,7 +808,7 @@ pgoutput_truncate(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
continue;
relids[nrelids++] = relid;
- maybe_send_schema(ctx, txn, change, relation, relentry);
+ maybe_send_schema(ctx, change, relation, relentry);
}
if (nrelids > 0)