Skip to content

Commit

Permalink
Fix wrong reserved bits in ClientFlags
Browse files Browse the repository at this point in the history
The bits should be 10, it causes ClientFlags to consume 8 more bytes now.
Introduced in valkey-io#614.

Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin committed Jul 2, 2024
1 parent fa01a29 commit 7dc534e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ typedef struct ClientFlags {
uint64_t reprocessing_command : 1; /* The client is re-processing the command. */
uint64_t replication_done : 1; /* Indicate that replication has been done on the client */
uint64_t authenticated : 1; /* Indicate a client has successfully authenticated */
uint64_t reserved : 11; /* Reserved for future use */
uint64_t reserved : 10; /* Reserved for future use */
} ClientFlags;

typedef struct client {
Expand Down

0 comments on commit 7dc534e

Please sign in to comment.