From 156836bfe500a2dce9319fdba259d40735421a38 Mon Sep 17 00:00:00 2001 From: Binbin Date: Tue, 26 Apr 2022 19:29:05 +0800 Subject: 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 --- src/server.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.h b/src/server.h index b26ec7b3b..7d284cb04 100644 --- a/src/server.h +++ b/src/server.h @@ -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 -- cgit v1.2.1