Skip to content

Commit e1d003b

Browse files
committed
Merge branch 'master' of git.postgrespro.ru:pgpro-dev/pg_probackup
2 parents 5e0e881 + 29d529a commit e1d003b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

catalog.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -551,11 +551,11 @@ parse_backup_mode(const char *value)
551551
v++;
552552
len = strlen(v);
553553

554-
if (len > 0 && pg_strncasecmp("full", v, strlen("full")) == 0)
554+
if (len > 0 && pg_strncasecmp("full", v, len) == 0)
555555
return BACKUP_MODE_FULL;
556-
else if (len > 0 && pg_strncasecmp("page", v, strlen("page")) == 0)
556+
else if (len > 0 && pg_strncasecmp("page", v, len) == 0)
557557
return BACKUP_MODE_DIFF_PAGE;
558-
else if (len > 0 && pg_strncasecmp("ptrack", v, strlen("ptrack")) == 0)
558+
else if (len > 0 && pg_strncasecmp("ptrack", v, len) == 0)
559559
return BACKUP_MODE_DIFF_PTRACK;
560560

561561
/* Backup mode is invalid, so leave with an error */
@@ -609,4 +609,4 @@ pgBackupGetPath(const pgBackup *backup, char *path, size_t len, const char *subd
609609
free(datetime);
610610

611611
make_native_path(path);
612-
}
612+
}

data.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ backup_data_page(pgFile *file, const XLogRecPtr *prev_backup_start_lsn,
7878
/* TODO Should we check specific error code here? */
7979
if (verbose)
8080
elog(WARNING, "File: %s, could not seek to block %u."
81-
"Probably the file was truncated after backup start.",
82-
file->path, blknum);
83-
return;
81+
"Probably the file was truncated after backup start.",
82+
file->path, blknum);
83+
return;
8484
}
8585

8686
read_len = fread(&page, 1, BLCKSZ, in);

restore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ do_restore_or_validate(time_t target_backup_id,
215215
{
216216
pgBackup *backup = (pgBackup *) parray_get(backups, i);
217217

218-
if (backup->status == BACKUP_STATUS_OK);
218+
if (backup->status == BACKUP_STATUS_OK)
219219
{
220220
pgBackupValidate(backup);
221221

show.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ show_backup_list(FILE *out, parray *backup_list)
195195
/* Get parent timeline before printing */
196196
parent_tli = get_parent_tli(backup->tli);
197197

198-
fprintf(out, "%-8s %-19s %s%s %2d / %-2d %5s %6s %2X/%08X %2X/%08X %-8s\n",
198+
fprintf(out, "%-8s %-19s %s%-9s %2d / %d %5s %6s %2X/%08X %2X/%08X %-8s\n",
199199
base36enc(backup->start_time),
200200
timestamp,
201201
backupModes[backup->backup_mode],

0 commit comments

Comments
 (0)