@@ -1160,12 +1160,10 @@ read_tablespace_map(parray *links, const char *backup_dir)
1160
1160
1161
1161
path = buf + n ;
1162
1162
1163
- /* remove '\n' */
1163
+ /* Remove newline character at the end of string */
1164
1164
i = strlen (path ) - 1 ;
1165
1165
path [i ] = '\0' ;
1166
1166
1167
- elog (INFO , "STR: '%s'" , path );
1168
-
1169
1167
file = pgut_new (pgFile );
1170
1168
memset (file , 0 , sizeof (pgFile ));
1171
1169
@@ -1289,12 +1287,8 @@ check_tablespace_mapping(pgBackup *backup, bool incremental, bool force, bool pg
1289
1287
TablespaceListCell * cell ;
1290
1288
bool remapped = false;
1291
1289
1292
- elog (INFO , "Linked path: \"%s\"" , linked_path );
1293
-
1294
1290
for (cell = tablespace_dirs .head ; cell ; cell = cell -> next )
1295
1291
{
1296
- elog (INFO , "Remap dir: \"%s\"" , cell -> old_dir );
1297
-
1298
1292
if (strcmp (link -> linked , cell -> old_dir ) == 0 )
1299
1293
{
1300
1294
linked_path = cell -> new_dir ;
@@ -1303,6 +1297,11 @@ check_tablespace_mapping(pgBackup *backup, bool incremental, bool force, bool pg
1303
1297
}
1304
1298
}
1305
1299
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
+
1306
1305
if (!is_absolute_path (linked_path ))
1307
1306
elog (ERROR , "Tablespace directory path must be an absolute path: %s\n" ,
1308
1307
linked_path );
0 commit comments