Unverified Commit 156836bf authored by Binbin's avatar Binbin Committed by GitHub
Browse files

Fix syntax error in replicationErrorBehavior enum (#10642)

Missing a typeof, we will get errors like this:
- multiple definition of `replicationErrorBehavior'
- ld: error: duplicate symbol: replicationErrorBehavior

Introduced in #10504
parent 6fa8e4f7
...@@ -1328,7 +1328,7 @@ struct redisMemOverhead { ...@@ -1328,7 +1328,7 @@ struct redisMemOverhead {
/* Replication error behavior determines the replica behavior /* Replication error behavior determines the replica behavior
* when it receives an error over the replication stream. In * when it receives an error over the replication stream. In
* either case the error is logged. */ * either case the error is logged. */
enum { typedef enum {
PROPAGATION_ERR_BEHAVIOR_IGNORE = 0, PROPAGATION_ERR_BEHAVIOR_IGNORE = 0,
PROPAGATION_ERR_BEHAVIOR_PANIC, PROPAGATION_ERR_BEHAVIOR_PANIC,
PROPAGATION_ERR_BEHAVIOR_PANIC_ON_REPLICAS PROPAGATION_ERR_BEHAVIOR_PANIC_ON_REPLICAS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment