提交 ddcf1603 编写于 作者: A antirez

Move mstime_t define outside sentinel.c.

The define is now used in other parts of Redis 2.8 tree instead of long
long.

A nice side effect is that now 2.8 and unstable sentinel.c files are
identical as it should be.
上级 c5bc5926
...@@ -368,6 +368,8 @@ ...@@ -368,6 +368,8 @@
* Data types * Data types
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
typedef long long mstime_t; /* millisecond time type. */
/* A redis object, that is a type able to hold a string / list / set */ /* A redis object, that is a type able to hold a string / list / set */
/* The actual Redis Object */ /* The actual Redis Object */
......
...@@ -44,8 +44,6 @@ extern char **environ; ...@@ -44,8 +44,6 @@ extern char **environ;
/* ======================== Sentinel global state =========================== */ /* ======================== Sentinel global state =========================== */
typedef long long mstime_t; /* millisecond time type. */
/* Address object, used to describe an ip:port pair. */ /* Address object, used to describe an ip:port pair. */
typedef struct sentinelAddr { typedef struct sentinelAddr {
char *ip; char *ip;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册