Previously only if pgpool_status exists and the status is down, a log
message was printed. However it is more useful no matter what the
status (up or unused) is because it also represents that pgpool_status
exists and it is read while pgpool starting up, which is useful
information.
{
BACKEND_INFO(i).backend_status = CON_UP;
someone_wakeup = true;
+ ereport(LOG,
+ (errmsg("reading status file: %d th backend is set to up status", i)));
}
else if (!strncasecmp("down", readbuf, 4))
{
{
BACKEND_INFO(i).backend_status = CON_UNUSED;
pool_set_backend_status_changed_time(i);
+ ereport(LOG,
+ (errmsg("reading status file: %d th backend is set to unused status", i)));
}
else
{