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

Commit7604267

Browse files
committed
Set socket timer to 58 instead of 60 minutes for hour-old cleaners:
* Touch the socket and lock file at least every hour, to * ensure that they are not removed by overzealous /tmp-cleaning * tasks. Set to 58 minutes so a cleaner never sees the * file as an hour old.
1 parent7e1c6f1 commit7604267

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.448 2005/03/2405:19:05 momjian Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.449 2005/03/2418:16:17 momjian Exp $
4141
*
4242
* NOTES
4343
*
@@ -1248,10 +1248,11 @@ ServerLoop(void)
12481248
/*
12491249
* Touch the socket and lock file at least every hour, to
12501250
* ensure that they are not removed by overzealous /tmp-cleaning
1251-
* tasks.
1251+
* tasks. Set to 58 minutes so a cleaner never sees the
1252+
* file as an hour old.
12521253
*/
12531254
now=time(NULL);
1254-
if (now-last_touch_time >=60*60)
1255+
if (now-last_touch_time >=58*60)
12551256
{
12561257
TouchSocketFile();
12571258
TouchSocketLockFile();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp