8000 minor cleanup · postgrespro/pg_probackup@b7b3bb7 · GitHub
[go: up one dir, main page]

Skip to content

Commit b7b3bb7

Browse files
committed
minor cleanup
1 parent 7a46423 commit b7b3bb7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/dir.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,12 +1160,10 @@ read_tablespace_map(parray *links, const char *backup_dir)
11601160

11611161
path = buf + n;
11621162

1163-
/* remove '\n' */
1163+
/* Remove newline character at the end of string */
11641164
i = strlen(path) - 1;
11651165
path[i] = '\0';
11661166

1167-
elog(INFO, "STR: '%s'", path);
1168-
11691167
file = pgut_new(pgFile);
11701168
memset(file, 0, sizeof(pgFile));
11711169

@@ -1289,12 +1287,8 @@ check_tablespace_mapping(pgBackup *backup, bool incremental, bool force, bool pg
12891287
TablespaceListCell *cell;
12901288
bool remapped = false;
12911289

1292-
elog(INFO, "Linked path: \"%s\"", linked_path);
1293-
12941290
for (cell = tablespace_dirs.head; cell; cell = cell->next)
12951291
{
1296-
elog(INFO, "Remap dir: \"%s\"", cell->old_dir);
1297-
12981292
if (strcmp(link->linked, cell->old_dir) == 0)
12991293
{
13001294
linked_path = cell->new_dir;
@@ -1303,6 +1297,11 @@ check_tablespace_mapping(pgBackup *backup, bool incremental, bool force, bool pg
13031297
}
13041298
}
13051299

1300+
if (remapped)
1301+
elog(INFO, "Tablespace %s will be remapped from \"%s\" to \"%s\"", link->name, cell->old_dir, cell->new_dir);
1302+
else
1303+
elog(INFO, "Tablespace %s will be restored using old path \"%s\"", link->name, linked_path);
1304+
13061305
if (!is_absolute_path(linked_path))
13071306
elog(ERROR, "Tablespace directory path must be an absolute path: %s\n",
13081307
linked_path);

0 commit comments

Comments
 (0)
0