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

Commita13421c

Browse files
committed
Add some const decorations
1 parent7259736 commita13421c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/backend/replication/logical/logical.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static void stream_message_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *tx
8282
staticvoidstream_truncate_cb_wrapper(ReorderBuffer*cache,ReorderBufferTXN*txn,
8383
intnrelations,Relationrelations[],ReorderBufferChange*change);
8484

85-
staticvoidLoadOutputPlugin(OutputPluginCallbacks*callbacks,char*plugin);
85+
staticvoidLoadOutputPlugin(OutputPluginCallbacks*callbacks,constchar*plugin);
8686

8787
/*
8888
* Make sure the current settings & environment are capable of doing logical
@@ -277,7 +277,7 @@ StartupDecodingContext(List *output_plugin_options,
277277
* startup function.
278278
*/
279279
LogicalDecodingContext*
280-
CreateInitDecodingContext(char*plugin,
280+
CreateInitDecodingContext(constchar*plugin,
281281
List*output_plugin_options,
282282
boolneed_full_snapshot,
283283
XLogRecPtrrestart_lsn,
@@ -612,7 +612,7 @@ OutputPluginUpdateProgress(struct LogicalDecodingContext *ctx)
612612
* that it provides the required callbacks.
613613
*/
614614
staticvoid
615-
LoadOutputPlugin(OutputPluginCallbacks*callbacks,char*plugin)
615+
LoadOutputPlugin(OutputPluginCallbacks*callbacks,constchar*plugin)
616616
{
617617
LogicalOutputPluginInitplugin_init;
618618

‎src/include/replication/logical.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ typedef struct LogicalDecodingContext
9696

9797
externvoidCheckLogicalDecodingRequirements(void);
9898

99-
externLogicalDecodingContext*CreateInitDecodingContext(char*plugin,
99+
externLogicalDecodingContext*CreateInitDecodingContext(constchar*plugin,
100100
List*output_plugin_options,
101101
boolneed_full_snapshot,
102102
XLogRecPtrrestart_lsn,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp