8000 [PBCKP-236] draft, first-stage compatibility protocol impl with stubs · postgrespro/pg_probackup@f5fde7e · GitHub
[go: up one dir, main page]

Skip to content

Commit f5fde7e

Browse files
< 8000 div class="prc-PageHeader-Description-kFg8r">
author
Ivan Lazarev
committed
[PBCKP-236] draft, first-stage compatibility protocol impl with stubs
1 parent 46b7079 commit f5fde7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ fio_get_agent_version(int* protocol, char* payload_buf, size_t payload_buf_size)
281281
IO_CHECK(fio_read_all(fio_stdin, &hdr, sizeof(hdr)), sizeof(hdr));
282282
if (hdr.size > payload_buf_size)
283283
{
284-
elog(ERROR, "Bad protocol, insufficient payload_buf_size=%u", payload_buf_size);
284+
elog(ERROR, "Bad protocol, insufficient payload_buf_size=%zu", payload_buf_size);
285285
}
286286

287287
*protocol = hdr.arg;
@@ -3323,14 +3323,14 @@ fio_communicate(int in, int out)
33233323
case FIO_AGENT_VERSION:
33243324
hdr.arg = AGENT_PROTOCOL_VERSION;
33253325
IO_CHECK(fio_write_all(out, &hdr, sizeof(hdr)), sizeof(hdr));
3326-
assert(false);
33273326
//TODO REVIEW XXX is it allowed by ANSI C to declare new scope inside???
33283327
{
33293328
size_t payload_size = prepare_remote_agent_compatibility_str(buf, buf_size);
33303329
IO_CHECK(fio_write_all(out, buf, payload_size), payload_size);
33313330
//TODO REVIEW XXX make INFO to LOG or VERBOSE
33323331
elog(INFO, "TODO REVIEW XXX sent agent compatibility\n %s", buf);
33333332
}
3333+
assert(false);
33343334
break;
33353335
case FIO_STAT: /* Get information about file with specified path */
33363336
hdr.size = sizeof(st);

0 commit comments

Comments
 (0)
0