@@ -888,6 +888,7 @@ get_lsn(PGconn *conn, PGresult *res, XLogRecPtr *lsn, bool stop_backup)
888
888
char path_backup_label [MAXPGPATH ];
889
889
char path_tablespace_map [MAXPGPATH ];
890
890
FILE * fp ;
891
+ pgFile * file ;
891
892
892
893
pgBackupGetPath (& current ,path ,lengthof (path ),DATABASE_DIR );
893
894
snprintf (path_backup_label ,lengthof (path_backup_label ),"%s/backup_label" ,path );
@@ -900,6 +901,11 @@ get_lsn(PGconn *conn, PGresult *res, XLogRecPtr *lsn, bool stop_backup)
900
901
901
902
fwrite (PQgetvalue (res ,0 ,1 ),1 ,strlen (PQgetvalue (res ,0 ,1 )),fp );
902
903
fclose (fp );
904
+ file = pgFileNew (path_backup_label , true);
905
+ calc_file (file );
906
+ free (file -> path );
907
+ file -> path = strdup ("backup_label" );
908
+ parray_append (backup_files_list ,file );
903
909
if (strlen (PQgetvalue (res ,0 ,2 ))== 0 )
904
910
return ;
905
911
@@ -910,6 +916,11 @@ get_lsn(PGconn *conn, PGresult *res, XLogRecPtr *lsn, bool stop_backup)
910
916
911
917
fwrite (PQgetvalue (res ,0 ,2 ),1 ,strlen (PQgetvalue (res ,0 ,2 )),fp );
912
918
fclose (fp );
919
+ file = pgFileNew (path_tablespace_map , true);
920
+ calc_file (file );
921
+ free (file -> path );
922
+ file -> path = strdup ("tablespace_map" );
923
+ parray_append (backup_files_list ,file );
913
924
}
914
925
}
915
926