Skip to content

Commit a13421c

Browse files
committed
Add some const decorations
1 parent 7259736 commit a13421c

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
static void stream_truncate_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn,
8383
int nrelations, Relation relations[], ReorderBufferChange *change);
8484

85-
static void LoadOutputPlugin(OutputPluginCallbacks *callbacks, char *plugin);
85+
static void LoadOutputPlugin(OutputPluginCallbacks *callbacks, const char *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(const char *plugin,
281281
List *output_plugin_options,
282282
bool need_full_snapshot,
283283
XLogRecPtr restart_lsn,
@@ -612,7 +612,7 @@ OutputPluginUpdateProgress(struct LogicalDecodingContext *ctx)
612612
* that it provides the required callbacks.
613613
*/
614614
static void
615-
LoadOutputPlugin(OutputPluginCallbacks *callbacks, char *plugin)
615+
LoadOutputPlugin(OutputPluginCallbacks *callbacks, const char *plugin)
616616
{
617617
LogicalOutputPluginInit plugin_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
extern void CheckLogicalDecodingRequirements(void);
9898

99-
extern LogicalDecodingContext *CreateInitDecodingContext(char *plugin,
99+
extern LogicalDecodingContext *CreateInitDecodingContext(const char *plugin,
100100
List *output_plugin_options,
101101
bool need_full_snapshot,
102102
XLogRecPtr restart_lsn,

0 commit comments

Comments
 (0)