diff --git a/src/connection.h b/src/connection.h index 10f9e322b..f5624b596 100644 --- a/src/connection.h +++ b/src/connection.h @@ -31,6 +31,8 @@ #ifndef __REDIS_CONNECTION_H #define __REDIS_CONNECTION_H +#include + #define CONN_INFO_LEN 32 struct aeEventLoop; @@ -70,7 +72,7 @@ typedef struct ConnectionType { struct connection { ConnectionType *type; - ConnectionState state; + std::atomic state; short int flags; short int refs; int last_errno;