mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-03 14:01:57 +02:00
Create log rotation file per each log file
This commit is contained in:
parent
1e6d294db0
commit
84d309a688
@ -410,7 +410,7 @@ open_logfile(FILE **file, const char *filename_format)
|
|||||||
filename = logfile_getname(filename_format, cur_time);
|
filename = logfile_getname(filename_format, cur_time);
|
||||||
|
|
||||||
/* "log_path" was checked in logfile_getname() */
|
/* "log_path" was checked in logfile_getname() */
|
||||||
snprintf(control, MAXPGPATH, "%s/log_rotation", log_path);
|
snprintf(control, MAXPGPATH, "%s.rotation", filename);
|
||||||
|
|
||||||
if (stat(filename, &st) == -1)
|
if (stat(filename, &st) == -1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user