1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-09-16 09:06:18 +02:00

Fix assert message and add a clarifying comment.

This commit is contained in:
David Steele
2022-10-03 10:02:44 -10:00
parent 6e26860c26
commit f0acc195c0

View File

@@ -100,7 +100,8 @@ ioFilterProcessInOut(IoFilter *this, const Buffer *input, Buffer *output)
if (!ioFilterDone(this))
this->pub.interface.inOut(this->pub.driver, input, output);
CHECK(AssertError, !ioFilterInputSame(this) || !bufEmpty(output), "expected input same or output");
// If input same is requested then there must be some output otherwise there is no point in requesting the same input
CHECK(AssertError, !ioFilterInputSame(this) || !bufEmpty(output), "expected input to be consumed or some output");
FUNCTION_TEST_RETURN_VOID();
}