summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBinbin <binloveplay1314@qq.com>2022-04-26 19:29:05 +0800
committerGitHub <noreply@github.com>2022-04-26 14:29:05 +0300
commit156836bfe500a2dce9319fdba259d40735421a38 (patch)
tree0ae183ee1fc77bfb32ee243ff42ec8bd48f976a2
parent6fa8e4f7afcbd14748c736c38e5fbc117eaef7ba (diff)
downloadredis-156836bfe500a2dce9319fdba259d40735421a38.tar.gz
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
-rw-r--r--src/server.h2
1 files changed, 1 insertions, 1 deletions
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