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

Commit1eda3ce

Browse files
committed
Mark argument of RegisterCustomRmgr() as const.
1 parentae168c7 commit1eda3ce

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

‎doc/src/sgml/custom-rmgr.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ typedef struct RmgrData
7878
* developers. During development, use RM_EXPERIMENTAL_ID to avoid needlessly
7979
* reserving a new ID.
8080
*/
81-
extern void RegisterCustomRmgr(RmgrId rmid, RmgrData *rmgr);
81+
extern void RegisterCustomRmgr(RmgrId rmid,constRmgrData *rmgr);
8282
</programlisting>
8383
<function>RegisterCustomRmgr</function> must be called from the
8484
extension module's <link linkend="xfunc-c-dynload">_PG_init</link> function.

‎src/backend/access/transam/rmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ RmgrNotFound(RmgrId rmid)
9595
* reserving a new ID.
9696
*/
9797
void
98-
RegisterCustomRmgr(RmgrIdrmid,RmgrData*rmgr)
98+
RegisterCustomRmgr(RmgrIdrmid,constRmgrData*rmgr)
9999
{
100100
if (rmgr->rm_name==NULL||strlen(rmgr->rm_name)==0)
101101
ereport(ERROR, (errmsg("custom resource manager name is invalid"),

‎src/include/access/xlog_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ extern PGDLLIMPORT RmgrData RmgrTable[];
362362
externvoidRmgrStartup(void);
363363
externvoidRmgrCleanup(void);
364364
externvoidRmgrNotFound(RmgrIdrmid);
365-
externvoidRegisterCustomRmgr(RmgrIdrmid,RmgrData*rmgr);
365+
externvoidRegisterCustomRmgr(RmgrIdrmid,constRmgrData*rmgr);
366366

367367
#ifndefFRONTEND
368368
staticinlinebool

‎src/test/modules/test_custom_rmgrs/test_custom_rmgrs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ voidtestcustomrmgrs_redo(XLogReaderState *record);
5151
voidtestcustomrmgrs_desc(StringInfobuf,XLogReaderState*record);
5252
constchar*testcustomrmgrs_identify(uint8info);
5353

54-
staticRmgrDatatestcustomrmgrs_rmgr= {
54+
staticconstRmgrDatatestcustomrmgrs_rmgr= {
5555
.rm_name=TESTCUSTOMRMGRS_NAME,
5656
.rm_redo=testcustomrmgrs_redo,
5757
.rm_desc=testcustomrmgrs_desc,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp