Skip to content

Commit

Permalink
Fix syntax error in replicationErrorBehavior enum
Browse files Browse the repository at this point in the history
Missing a typeof, we will get errors like this:
- multiple definition of `replicationErrorBehavior'
- ld: error: duplicate symbol: replicationErrorBehavior

Introduced in redis#10504
  • Loading branch information
enjoy-binbin committed Apr 26, 2022
1 parent 6fa8e4f commit 388001e
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 @@ -1328,7 +1328,7 @@ struct redisMemOverhead {
/* Replication error behavior determines the replica behavior
* when it receives an error over the replication stream. In
* either case the error is logged. */
enum {
typedef enum {
PROPAGATION_ERR_BEHAVIOR_IGNORE = 0,
PROPAGATION_ERR_BEHAVIOR_PANIC,
PROPAGATION_ERR_BEHAVIOR_PANIC_ON_REPLICAS
Expand Down

0 comments on commit 388001e

Please sign in to comment.