Skip to content

Commit 497f5b2

Browse files
committed
[Issue #204] Fix agent version check
1 parent f39ef5f commit 497f5b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pg_probackup.c

+3-2
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
uint32 agent_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)