mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Expand usage of macros for protocol characters.
This commit makes use of the existing PqMsg_* macros in more places and adds new PqReplMsg_* and PqBackupMsg_* macros for use in special replication and backup messages, respectively. Author: Dave Cramer <davecramer@gmail.com> Co-authored-by: Fabrízio de Royes Mello <fabriziomello@gmail.com> Reviewed-by: Jacob Champion <jacob.champion@enterprisedb.com> Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de> Reviewed-by: Euler Taveira <euler@eulerto.com> Discussion: https://postgr.es/m/aIECfYfevCUpenBT@nathan Discussion: https://postgr.es/m/CAFcNs%2Br73NOUb7%2BqKrV4HHEki02CS96Z%2Bx19WaFgE087BWwEng%40mail.gmail.com
This commit is contained in:
@@ -778,10 +778,10 @@ LogicalParallelApplyLoop(shm_mq_handle *mqh)
|
||||
|
||||
/*
|
||||
* The first byte of messages sent from leader apply worker to
|
||||
* parallel apply workers can only be 'w'.
|
||||
* parallel apply workers can only be PqReplMsg_WALData.
|
||||
*/
|
||||
c = pq_getmsgbyte(&s);
|
||||
if (c != 'w')
|
||||
if (c != PqReplMsg_WALData)
|
||||
elog(ERROR, "unexpected message \"%c\"", c);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user