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

Commit497f5b2

Browse files
committed
[Issue#204] Fix agent version check
1 parentf39ef5f commit497f5b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/pg_probackup.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ main(int argc, char *argv[])
349349
if (strcmp(remote_agent,PROGRAM_VERSION)!=0)
350350
{
351351
uint32agent_version=parse_program_version(remote_agent);
352-
elog(agent_version<AGENT_PROTOCOL_VERSION ?ERROR :WARNING,
352+
elog(agent_version!=AGENT_PROTOCOL_VERSION ?ERROR :WARNING,
353353
"Agent version %s doesn't match master pg_probackup version %s",
354354
PROGRAM_VERSION,remote_agent);
355355
}
@@ -528,7 +528,8 @@ main(int argc, char *argv[])
528528
{
529529
/* Ensure that backup_path is a path to a directory */
530530
if (!S_ISDIR(st.st_mode))
531-
elog(ERROR,"-B, --backup-path must be a path to directory");
531+
elog(ERROR,"-B, --backup-path must be a path to directory. Inode: %lu. ST_MODE: %u",
532+
st.st_ino,st.st_mode);
532533
}
533534
}
534535
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp