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

Appearance settings

Commit 48018f1

Browse filesBrowse files
committed
1 parent 05c3980 commit 48018f1
Copy full SHA for 48018f1

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎src/fe_utils/recovery_gen.c

Copy file name to clipboardExpand all lines: src/fe_utils/recovery_gen.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static char *escape_quotes(const char *src);
2020
* return it.
2121
*/
2222
PQExpBuffer
23-
GenerateRecoveryConfig(PGconn *pgconn, char *replication_slot)
23+
GenerateRecoveryConfig(PGconn *pgconn, const char *replication_slot)
2424
{
2525
PQconninfoOption *connOptions;
2626
PQExpBufferData conninfo_buf;
@@ -102,7 +102,7 @@ GenerateRecoveryConfig(PGconn *pgconn, char *replication_slot)
102102
* configuration is written to recovery.conf.
103103
*/
104104
void
105-
WriteRecoveryConfig(PGconn *pgconn, char *target_dir, PQExpBuffer contents)
105+
WriteRecoveryConfig(PGconn *pgconn, const char *target_dir, PQExpBuffer contents)
106106
{
107107
char filename[MAXPGPATH];
108108
FILE *cf;

‎src/include/fe_utils/recovery_gen.h

Copy file name to clipboardExpand all lines: src/include/fe_utils/recovery_gen.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
#define MINIMUM_VERSION_FOR_RECOVERY_GUC 120000
2222

2323
extern PQExpBuffer GenerateRecoveryConfig(PGconn *pgconn,
24-
char *replication_slot);
25-
extern void WriteRecoveryConfig(PGconn *pgconn, char *target_dir,
24+
const char *replication_slot);
25+
extern void WriteRecoveryConfig(PGconn *pgconn, const char *target_dir,
2626
PQExpBuffer contents);
2727

2828
#endif /* RECOVERY_GEN_H */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.