1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-24 11:46:31 +02:00

Create log rotation file per each log file

This commit is contained in:
Arthur Zakirov 2017-06-10 23:53:51 +03:00
parent 1e6d294db0
commit 84d309a688

View File

@ -410,7 +410,7 @@ open_logfile(FILE **file, const char *filename_format)
filename = logfile_getname(filename_format, cur_time);
/* "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)
{