Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfe5dd35

Browse files
committed
fix in remote file removing for Windows
1 parent5fa64b9 commitfe5dd35

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎src/restore.c‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -831,12 +831,13 @@ restore_chain(pgBackup *dest_backup, parray *parent_chain,
831831
/* if file does not exists in destination list, then we can safely unlink it */
832832
if (parray_bsearch(dest_backup->files,file,pgFileCompareRelPathWithExternal)==NULL)
833833
{
834-
charfull_file_path[MAXPGPATH];
834+
charfullpath[MAXPGPATH];
835835

836-
join_path_components(full_file_path,pgdata_path,file->rel_path);
836+
join_path_components(fullpath,pgdata_path,file->rel_path);
837837

838-
fio_pgFileDelete(file,full_file_path);
839-
elog(VERBOSE,"Deleted file \"%s\"",full_file_path);
838+
//fio_pgFileDelete(file, full_file_path);
839+
pgFileDelete(file,fullpath);
840+
elog(VERBOSE,"Deleted file \"%s\"",fullpath);
840841

841842
/* shrink pgdata list */
842843
parray_remove(pgdata_files,i);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp