- Notifications
You must be signed in to change notification settings - Fork86
Small fixes#546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Small fixes#546
Changes fromall commits
80efb85
4730857
e16c62e
8f504fc
51a141c
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -801,8 +801,11 @@ backup_non_data_file(pgFile *file, pgFile *prev_file, | ||
(prev_file && file->exists_in_prev && | ||
file->mtime <= parent_backup_time)) | ||
{ | ||
/* | ||
* file could be deleted under our feets. | ||
* But then backup_non_data_file_internal will handle it safely | ||
*/ | ||
file->crc = fio_get_crc32(from_fullpath, FIO_DB_HOST, false, true); | ||
kulaginm marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
/* ...and checksum is the same... */ | ||
if (EQ_TRADITIONAL_CRC32(file->crc, prev_file->crc)) | ||
@@ -1327,7 +1330,7 @@ restore_non_data_file(parray *parent_chain, pgBackup *dest_backup, | ||
if (already_exists) | ||
{ | ||
/* compare checksums of already existing file and backup file */ | ||
pg_crc32 file_crc = fio_get_crc32(to_fullpath, FIO_DB_HOST, false, false); | ||
if (file_crc == tmp_file->crc) | ||
{ | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -88,7 +88,7 @@ bool perm_slot = false; | ||
/* backup options */ | ||
bool backup_logs = false; | ||
bool smooth_checkpoint; | ||
boolremote_agent = false; | ||
static char *backup_note = NULL; | ||
/* catchup options */ | ||
static char *catchup_source_pgdata = NULL; | ||
@@ -361,6 +361,7 @@ main(int argc, char *argv[]) | ||
elog(ERROR, "Version mismatch, pg_probackup binary with version '%s' " | ||
"is launched as an agent for pg_probackup binary with version '%s'", | ||
PROGRAM_VERSION, argv[2]); | ||
remote_agent = true; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Я думаю тогда надо дочистить и упоминание условия в config_get_opt() (потому что в случае агента эта функция вроде и не вызывается). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. done | ||
fio_communicate(STDIN_FILENO, STDOUT_FILENO); | ||
return 0; | ||
case HELP_CMD: | ||