Remove extra Logging_collector check before calling SysLogger_Start()

Поиск
Список
Период
Сортировка
От Bharath Rupireddy
Тема Remove extra Logging_collector check before calling SysLogger_Start()
Дата
Msg-id CALj2ACV9J=bwTrJJPc+nr6SBijsnoCCMB2Lf7xE6tJ7gShnzew@mail.gmail.com
обсуждение исходный текст
Ответы Re: Remove extra Logging_collector check before calling SysLogger_Start()  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
Hi,

It seems like there's an extra Logging_collector check before calling
SysLogger_Start(). Note that the SysLogger_Start() has a check to
return 0 if Logging_collector is off. This change is consistent with
the other usage of SysLogger_Start().

                /* If we have lost the log collector, try to start a new one */
-               if (SysLoggerPID == 0 && Logging_collector)
+               if (SysLoggerPID == 0)
                        SysLoggerPID = SysLogger_Start();

Attaching a tiny patch to fix. Thoughts?

Regards,
Bharath Rupireddy.

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "tanghy.fnst@fujitsu.com"
Дата:
Сообщение: RE: Alter all tables in schema owner fix
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Remove extra Logging_collector check before calling SysLogger_Start()