Skip to content

Commit

Permalink
Add comments for define
Browse files Browse the repository at this point in the history
Signed-off-by: Roshan Khatri <[email protected]>
  • Loading branch information
roshkhatri committed Jul 22, 2024
1 parent 4dbc07d commit f9bd8ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cluster_legacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ typedef struct clusterNodeFailReport {
#define CLUSTERMSG_TYPE_PUBLISHSHARD 10 /* Pub/Sub Publish shard propagation */
#define CLUSTERMSG_TYPE_COUNT 11 /* Total number of message types. */

#define CLUSTERMSG_LIGHT 0x8000
#define CLUSTERMSG_LIGHT 0x8000 /* Modifier bit for message types that support light header */

/* For the message with light header, we will set the MSB.*/
/* We check for the modifier bit to determine if the message is sent using light header.*/
#define IS_LIGHT_MESSAGE(type) ((type) & CLUSTERMSG_LIGHT)

/* Initially we don't know our "name", but we'll find it once we connect
Expand Down

0 comments on commit f9bd8ff

Please sign in to comment.