MCPcopy Create free account
hub / github.com/apache/cloudberry / CheckLogrotateSignal

Function CheckLogrotateSignal

src/backend/postmaster/syslogger.c:2255–2264  ·  view source on GitHub ↗

* Check to see if a log rotation request has arrived. Should be * called by postmaster after receiving SIGUSR1. */

Source from the content-addressed store, hash-verified

2253 * called by postmaster after receiving SIGUSR1.
2254 */
2255bool
2256CheckLogrotateSignal(void)
2257{
2258 struct stat stat_buf;
2259
2260 if (stat(LOGROTATE_SIGNAL_FILE, &stat_buf) == 0)
2261 return true;
2262
2263 return false;
2264}
2265
2266/*
2267 * Remove the file signaling a log rotation request.

Callers 1

sigusr1_handlerFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected