RE: Terminate the idle sessions
От | kuroda.hayato@fujitsu.com |
---|---|
Тема | RE: Terminate the idle sessions |
Дата | |
Msg-id | OSBPR01MB3157A77370A5EBFB3861A69FF5E10@OSBPR01MB3157.jpnprd01.prod.outlook.com обсуждение исходный текст |
Ответ на | Re: Terminate the idle sessions (Li Japin <japinli@hotmail.com>) |
Ответы |
Re: Terminate the idle sessions
|
Список | pgsql-hackers |
Dear Li, > Yeah, it might be occurred. Any suggestions to fix it? Oops.. I forgot putting my suggestion. Sorry. How about substituting sigalrm_delivered to true in the reschedule_timeouts()? Maybe this processing looks strange, so some comments should be put too. Here is an example: ```diff @@ -423,7 +423,14 @@ reschedule_timeouts(void) /* Reschedule the interrupt, if any timeouts remain active. */ if (num_active_timeouts > 0) + { + /* + * sigalrm_delivered is set to true, + * because any intrreputions might be occured. + */ + sigalrm_delivered = true; schedule_alarm(GetCurrentTimestamp()); + } } ``` Best Regards, Hayato Kuroda FUJITSU LIMITED
В списке pgsql-hackers по дате отправления: