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

FIx typos and missing debug param.

This commit is contained in:
David Steele
2019-02-02 15:18:10 +02:00
parent b29a8dd9c5
commit b3d1a2a802
2 changed files with 3 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ protocolClientNew(const String *name, const String *service, IoRead *read, IoWri
{ {
FUNCTION_LOG_BEGIN(logLevelTrace); FUNCTION_LOG_BEGIN(logLevelTrace);
FUNCTION_LOG_PARAM(STRING, name); FUNCTION_LOG_PARAM(STRING, name);
FUNCTION_LOG_PARAM(STRING, service);
FUNCTION_LOG_PARAM(IO_READ, read); FUNCTION_LOG_PARAM(IO_READ, read);
FUNCTION_LOG_PARAM(IO_WRITE, write); FUNCTION_LOG_PARAM(IO_WRITE, write);
FUNCTION_LOG_END(); FUNCTION_LOG_END();
@@ -108,7 +109,7 @@ protocolClientNew(const String *name, const String *service, IoRead *read, IoWri
// Send one noop to catch any errors that might happen after the greeting // Send one noop to catch any errors that might happen after the greeting
protocolClientNoOp(this); protocolClientNoOp(this);
// Set a callback so the handles will get freed // Set a callback to shutdown the protocol
memContextCallback(this->memContext, (MemContextCallback)protocolClientFree, this); memContextCallback(this->memContext, (MemContextCallback)protocolClientFree, this);
} }
MEM_CONTEXT_NEW_END(); MEM_CONTEXT_NEW_END();

View File

@@ -34,7 +34,7 @@ Constants
#define PROTOCOL_COMMAND "cmd" #define PROTOCOL_COMMAND "cmd"
STRING_DECLARE(PROTOCOL_COMMAND_STR); STRING_DECLARE(PROTOCOL_COMMAND_STR);
#define PROTOCOL_COMMAND_EXIT "exit" #define PROTOCOL_COMMAND_EXIT "exit"
STRING_DECLARE(PROTOCOL_COMMAND_NOOP_STR); STRING_DECLARE(PROTOCOL_COMMAND_EXIT_STR);
#define PROTOCOL_COMMAND_NOOP "noop" #define PROTOCOL_COMMAND_NOOP "noop"
STRING_DECLARE(PROTOCOL_COMMAND_NOOP_STR); STRING_DECLARE(PROTOCOL_COMMAND_NOOP_STR);