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

Commitb29fa95

Browse files
committed
Add some const decorations
One of these functions is new in PostgreSQL 14; might as well start itout right.
1 parent4dcb1d0 commitb29fa95

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ replorigin_check_prerequisites(bool check_slots, bool recoveryOK)
206206
* Returns InvalidOid if the node isn't known yet and missing_ok is true.
207207
*/
208208
RepOriginId
209-
replorigin_by_name(char*roname,boolmissing_ok)
209+
replorigin_by_name(constchar*roname,boolmissing_ok)
210210
{
211211
Form_pg_replication_originident;
212212
Oidroident=InvalidOid;
@@ -237,7 +237,7 @@ replorigin_by_name(char *roname, bool missing_ok)
237237
* Needs to be called in a transaction.
238238
*/
239239
RepOriginId
240-
replorigin_create(char*roname)
240+
replorigin_create(constchar*roname)
241241
{
242242
Oidroident;
243243
HeapTupletuple=NULL;
@@ -411,7 +411,7 @@ replorigin_drop_guts(Relation rel, RepOriginId roident, bool nowait)
411411
* Needs to be called in a transaction.
412412
*/
413413
void
414-
replorigin_drop_by_name(char*name,boolmissing_ok,boolnowait)
414+
replorigin_drop_by_name(constchar*name,boolmissing_ok,boolnowait)
415415
{
416416
RepOriginIdroident;
417417
Relationrel;

‎src/include/replication/origin.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ extern PGDLLIMPORT XLogRecPtr replorigin_session_origin_lsn;
3838
externPGDLLIMPORTTimestampTzreplorigin_session_origin_timestamp;
3939

4040
/* API for querying & manipulating replication origins */
41-
externRepOriginIdreplorigin_by_name(char*name,boolmissing_ok);
42-
externRepOriginIdreplorigin_create(char*name);
43-
externvoidreplorigin_drop_by_name(char*name,boolmissing_ok,boolnowait);
41+
externRepOriginIdreplorigin_by_name(constchar*name,boolmissing_ok);
42+
externRepOriginIdreplorigin_create(constchar*name);
43+
externvoidreplorigin_drop_by_name(constchar*name,boolmissing_ok,boolnowait);
4444
externboolreplorigin_by_oid(RepOriginIdroident,boolmissing_ok,
4545
char**roname);
4646

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp