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

Commit6e2e78c

Browse files
committed
parse tablespace_map correctly
1 parent0e6e9a4 commit6e2e78c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/dir.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ read_tablespace_map(parray *links, const char *backup_dir)
11531153
path[MAXPGPATH];
11541154
pgFile*file;
11551155

1156-
if (sscanf(buf,"%1023s %1023s",link_name,path)!=2)
1156+
if (sscanf(buf,"%s %n",link_name,path)!=2)
11571157
elog(ERROR,"invalid format found in \"%s\"",map_path);
11581158

11591159
file=pgut_new(pgFile);
@@ -1279,13 +1279,19 @@ check_tablespace_mapping(pgBackup *backup, bool incremental, bool force, bool pg
12791279
TablespaceListCell*cell;
12801280
boolremapped= false;
12811281

1282+
elog(INFO,"Linked path: \"%s\"",linked_path);
1283+
12821284
for (cell=tablespace_dirs.head;cell;cell=cell->next)
1285+
{
1286+
elog(INFO,"Remap dir: \"%s\"",cell->old_dir);
1287+
12831288
if (strcmp(link->linked,cell->old_dir)==0)
12841289
{
12851290
linked_path=cell->new_dir;
12861291
remapped= true;
12871292
break;
12881293
}
1294+
}
12891295

12901296
if (!is_absolute_path(linked_path))
12911297
elog(ERROR,"Tablespace directory path must be an absolute path: %s\n",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp