Skip to content

Commit f4b939f

Browse files
author
Amit Kapila
committed
Remove unused argument in apply_handle_commit_internal().
Oversight in commit 0926e96. Author: Masahiko Sawada Reviewed-By: Amit Kapila Backpatch-through: 14, where it was introduced Discussion: https://postgr.es/m/CAD21AoDeScrsHhLyEPYqN3sydg6PxAPVBboK=30xJfUVihNZDA@mail.gmail.com
1 parent f951f6f commit f4b939f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/backend/replication/logical/worker.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ static void maybe_reread_subscription(void);
235235
/* prototype needed because of stream_commit */
236236
static void apply_dispatch(StringInfo s);
237237

238-
static void apply_handle_commit_internal(StringInfo s,
239-
LogicalRepCommitData *commit_data);
238+
static void apply_handle_commit_internal(LogicalRepCommitData *commit_data);
240239
static void apply_handle_insert_internal(ApplyExecutionData *edata,
241240
ResultRelInfo *relinfo,
242241
TupleTableSlot *remoteslot);
@@ -775,7 +774,7 @@ apply_handle_commit(StringInfo s)
775774
LSN_FORMAT_ARGS(commit_data.commit_lsn),
776775
LSN_FORMAT_ARGS(remote_final_lsn))));
777776

778-
apply_handle_commit_internal(s, &commit_data);
777+
apply_handle_commit_internal(&commit_data);
779778

780779
/* Process any tables that are being synchronized in parallel. */
781780
process_syncing_tables(commit_data.end_lsn);
@@ -1133,7 +1132,7 @@ apply_handle_stream_commit(StringInfo s)
11331132
elog(DEBUG1, "replayed %d (all) changes from file \"%s\"",
11341133
nchanges, path);
11351134

1136-
apply_handle_commit_internal(s, &commit_data);
1135+
apply_handle_commit_internal(&commit_data);
11371136

11381137
/* unlink the files with serialized changes and subxact info */
11391138
stream_cleanup_files(MyLogicalRepWorker->subid, xid);
@@ -1148,7 +1147,7 @@ apply_handle_stream_commit(StringInfo s)
11481147
* Helper function for apply_handle_commit and apply_handle_stream_commit.
11491148
*/
11501149
static void
1151-
apply_handle_commit_internal(StringInfo s, LogicalRepCommitData *commit_data)
1150+
apply_handle_commit_internal(LogicalRepCommitData *commit_data)
11521151
{
11531152
if (IsTransactionState())
11541153
{

0 commit comments

Comments
 (0)