mirror of https://mirror.osredm.com/root/redis.git
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
This commit is contained in:
parent
6fa8e4f7af
commit
156836bfe5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue