author | Sebastian Harl <sh@tokkee.org> | |
Thu, 1 May 2014 14:02:59 +0000 (16:02 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 1 May 2014 14:02:59 +0000 (16:02 +0200) | ||
commit | 1f2aedf19e878c5cbf6d5bc5793ee3621fa7854c | |
tree | 8d8650fdc1518aad66dc412c8e448fe41d7b183a | tree | snapshot |
parent | 8c58d65dec8e046ec1d8b26eb1a6d913b971e5be | commit | diff |
sysdb: When handling a reply, base further actions on the response code.
This will actually enable the command handler to see whether a log message or
a query response was received.
Also, this ensures that the command handler may correctly detect errors during
query execution and exit with a non-zero code accordingly. The simple_query
integration test was updated to reflect this new, corrected behavior. Thanks
to the test for actually catching this misbehavior! :-)
This will actually enable the command handler to see whether a log message or
a query response was received.
Also, this ensures that the command handler may correctly detect errors during
query execution and exit with a non-zero code accordingly. The simple_query
integration test was updated to reflect this new, corrected behavior. Thanks
to the test for actually catching this misbehavior! :-)
src/tools/sysdb/command.c | diff | blob | history | |
t/integration/simple_query.sh | diff | blob | history |