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:
parent
0bf1b4a3b8
commit
818ef4b71d
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user