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

Commit9e416ef

Browse files
committed
Fix backend cleanup
1 parentd85b64c commit9e416ef

File tree

7 files changed

+85
-835
lines changed

7 files changed

+85
-835
lines changed

‎src/backend/postmaster/autovacuum.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,8 @@ AutovacuumLauncherIAm(void)
387387
}
388388
#endif
389389

390-
staticvoid*autovacuum_proc_main(void*arg)
390+
staticvoid*autovacuum_main_proc(void*arg)
391391
{
392-
initialize_thread(arg,NULL);
393392
AutoVacLauncherMain(0,NULL);
394393
returnNULL;
395394
}
@@ -403,7 +402,7 @@ StartAutoVacLauncher(void)
403402
{
404403
pthread_tAutoVacPID;
405404

406-
if (!create_thread(&AutoVacPID,autovacuum_proc_main,NULL)) {
405+
if (!create_thread(&AutoVacPID,autovacuum_main_proc,NULL)) {
407406
ereport(LOG,
408407
(errmsg("could not fork autovacuum launcher process: %m")));
409408
return0;

‎src/backend/postmaster/pgstat.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ session_local PgStat_MsgBgWriter BgWriterStats;
146146
* Local data
147147
* ----------
148148
*/
149-
session_localpgsocketpgStatSock=PGINVALID_SOCKET;
149+
pgsocketpgStatSock=PGINVALID_SOCKET;
150150

151-
staticsession_localstructsockaddr_storagepgStatAddr;
151+
staticstructsockaddr_storagepgStatAddr;
152152

153153
staticsession_localtime_tlast_pgstat_start_time;
154154

@@ -712,9 +712,8 @@ pgstat_forkexec(void)
712712
}
713713
#endif/* EXEC_BACKEND */
714714

715-
staticvoid*pgstat_proc_main(void*arg)
715+
staticvoid*pgstat_main_proc(void*arg)
716716
{
717-
initialize_thread(arg,NULL);
718717
PgstatCollectorMain(0,NULL);
719718
returnNULL;
720719
}
@@ -757,7 +756,7 @@ pgstat_start(void)
757756
/*
758757
* Okay, fork off the collector.
759758
*/
760-
if (!create_thread(&pgStatPid,pgstat_proc_main,NULL))
759+
if (!create_thread(&pgStatPid,pgstat_main_proc,NULL))
761760
{
762761
ereport(LOG,
763762
(errmsg("could not fork statistics collector: %m")));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp