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

Commit5fe08c0

Browse files
Use NULL instead of 0 for 'arg' argument in dshash_create() calls.
A couple of dshash_create() callers provide 0 for the 'void *arg'argument, which might give readers the incorrect impression thatthis is some sort of "flags" parameter.Reviewed-by: Andy FanDiscussion:https://postgr.es/m/20240119215941.GA1322079%40nathanxps13
1 parent6979ea2 commit5fe08c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ logicalrep_launcher_attach_dshmem(void)
10131013
last_start_times_dsa=dsa_create(LWTRANCHE_LAUNCHER_DSA);
10141014
dsa_pin(last_start_times_dsa);
10151015
dsa_pin_mapping(last_start_times_dsa);
1016-
last_start_times=dshash_create(last_start_times_dsa,&dsh_params,0);
1016+
last_start_times=dshash_create(last_start_times_dsa,&dsh_params,NULL);
10171017

10181018
/* Store handles in shared memory for other backends to use. */
10191019
LogicalRepCtx->last_start_dsa=dsa_get_handle(last_start_times_dsa);

‎src/backend/utils/activity/pgstat_shmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ StatsShmemInit(void)
180180
* With the limit in place, create the dshash table. XXX: It'd be nice
181181
* if there were dshash_create_in_place().
182182
*/
183-
dsh=dshash_create(dsa,&dsh_params,0);
183+
dsh=dshash_create(dsa,&dsh_params,NULL);
184184
ctl->hash_handle=dshash_get_hash_table_handle(dsh);
185185

186186
/* lift limit set above */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp