Skip to content

Commit 62acd2d

Browse files
committed
[Issue #117] use suffix ".part" instead of ".partial" for WAL copying
1 parent 8630b0d commit 62acd2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/archive.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ push_wal_file(const char *from_path, const char *to_path, bool is_compress,
181181
#ifdef HAVE_LIBZ
182182
if (is_compress)
183183
{
184-
snprintf(to_path_temp, sizeof(to_path_temp), "%s.partial", gz_to_path);
184+
snprintf(to_path_temp, sizeof(to_path_temp), "%s.part", gz_to_path);
185185

186186
gz_out = fio_gzopen(to_path_temp, PG_BINARY_W, instance_config.compress_level, FIO_BACKUP_HOST);
187187
if (gz_out == NULL)
@@ -194,7 +194,7 @@ push_wal_file(const char *from_path, const char *to_path, bool is_compress,
194194
else
195195
#endif
196196
{
197-
snprintf(to_path_temp, sizeof(to_path_temp), "%s.partial", to_path);
197+
snprintf(to_path_temp, sizeof(to_path_temp), "%s.part", to_path);
198198

199199
out = fio_open(to_path_temp, O_RDWR | O_CREAT | O_EXCL | PG_BINARY, FIO_BACKUP_HOST);
200200
if (out < 0)
@@ -416,7 +416,7 @@ get_wal_file(const char *from_path, const char *to_path)
416416
#endif
417417

418418
/* open backup file for write */
419-
snprintf(to_path_temp, sizeof(to_path_temp), "%s.partial", to_path);
419+
snprintf(to_path_temp, sizeof(to_path_temp), "%s.part", to_path);
420420

421421
out = fio_open(to_path_temp, O_RDWR | O_CREAT | O_EXCL | PG_BINARY, FIO_DB_HOST);
422422
if (out < 0)

0 commit comments

Comments
 (0)