@@ -788,7 +788,7 @@ push_wal_file(const char *from_path, const char *to_path, bool is_compress,
788788 if (!overwrite && fileExists (gz_to_path ))
789789 elog (ERROR , "WAL segment \"%s\" already exists." , gz_to_path );
790790
791- snprintf (to_path_temp , sizeof (to_path_temp ), "%s.temp " , gz_to_path );
791+ snprintf (to_path_temp , sizeof (to_path_temp ), "%s.partial " , gz_to_path );
792792
793793 gz_out = gzopen (to_path_temp , "wb" );
794794 if (gzsetparams (gz_out , compress_level , Z_DEFAULT_STRATEGY ) != Z_OK )
@@ -803,7 +803,7 @@ push_wal_file(const char *from_path, const char *to_path, bool is_compress,
803803 if (!overwrite && fileExists (to_path ))
804804 elog (ERROR , "WAL segment \"%s\" already exists." , to_path );
805805
806- snprintf (to_path_temp , sizeof (to_path_temp ), "%s.temp " , to_path );
806+ snprintf (to_path_temp , sizeof (to_path_temp ), "%s.partial " , to_path );
807807
808808 out = fopen (to_path_temp , "w" );
809809 if (out == NULL )
@@ -962,7 +962,7 @@ get_wal_file(const char *from_path, const char *to_path)
962962 }
963963
964964 /* open backup file for write */
965- snprintf (to_path_temp , sizeof (to_path_temp ), "%s.temp " , to_path );
965+ snprintf (to_path_temp , sizeof (to_path_temp ), "%s.partial " , to_path );
966966
967967 out = fopen (to_path_temp , "w" );
968968 if (out == NULL )
0 commit comments