1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-30 05:39:12 +02:00

Improve comments in protocol/command module.

This commit is contained in:
David Steele 2023-06-08 16:36:25 +03:00
parent 0bf1b4a3b8
commit 818ef4b71d
2 changed files with 2 additions and 3 deletions

View File

@ -53,12 +53,12 @@ protocolCommandPut(ProtocolCommand *const this, IoWrite *const write)
MEM_CONTEXT_TEMP_BEGIN()
{
// Write the command and flush to be sure the command gets sent immediately
// Write the command
PackWrite *commandPack = pckWriteNewIo(write);
pckWriteU32P(commandPack, protocolMessageTypeCommand, .defaultWrite = true);
pckWriteStrIdP(commandPack, this->command);
// Only write params if there were any
// Write parameters
if (this->pack != NULL)
{
pckWriteEndP(this->pack);

View File

@ -21,7 +21,6 @@ FN_EXTERN ProtocolCommand *protocolCommandNew(const StringId command);
Functions
***********************************************************************************************************************************/
// Move to a new parent mem context
// Move to a new parent mem context
FN_INLINE_ALWAYS ProtocolCommand *
protocolCommandMove(ProtocolCommand *const this, MemContext *const parentNew)
{