mirror of https://mirror.osredm.com/root/redis.git
Merge ccb3f3937e
into 4d9b4d6e51
This commit is contained in:
commit
d8dd6ac660
2
src/ae.c
2
src/ae.c
|
@ -323,7 +323,7 @@ static int processTimeEvents(aeEventLoop *eventLoop) {
|
|||
}
|
||||
|
||||
if (te->when <= now) {
|
||||
int retval;
|
||||
long long retval;
|
||||
|
||||
id = te->id;
|
||||
te->refcount++;
|
||||
|
|
2
src/ae.h
2
src/ae.h
|
@ -44,7 +44,7 @@ struct aeEventLoop;
|
|||
|
||||
/* Types and data structures */
|
||||
typedef void aeFileProc(struct aeEventLoop *eventLoop, int fd, void *clientData, int mask);
|
||||
typedef int aeTimeProc(struct aeEventLoop *eventLoop, long long id, void *clientData);
|
||||
typedef long long aeTimeProc(struct aeEventLoop *eventLoop, long long id, void *clientData);
|
||||
typedef void aeEventFinalizerProc(struct aeEventLoop *eventLoop, void *clientData);
|
||||
typedef void aeBeforeSleepProc(struct aeEventLoop *eventLoop);
|
||||
|
||||
|
|
|
@ -435,7 +435,7 @@ int overMaxmemoryAfterAlloc(size_t moremem) {
|
|||
* eviction cycles until the "maxmemory" condition has resolved or there are no
|
||||
* more evictable items. */
|
||||
static int isEvictionProcRunning = 0;
|
||||
static int evictionTimeProc(
|
||||
static long long evictionTimeProc(
|
||||
struct aeEventLoop *eventLoop, long long id, void *clientData) {
|
||||
UNUSED(eventLoop);
|
||||
UNUSED(id);
|
||||
|
|
|
@ -9271,7 +9271,7 @@ typedef struct RedisModuleTimer {
|
|||
|
||||
/* This is the timer handler that is called by the main event loop. We schedule
|
||||
* this timer to be called when the nearest of our module timers will expire. */
|
||||
int moduleTimerHandler(struct aeEventLoop *eventLoop, long long id, void *clientData) {
|
||||
static long long moduleTimerHandler(struct aeEventLoop *eventLoop, long long id, void *clientData) {
|
||||
UNUSED(eventLoop);
|
||||
UNUSED(id);
|
||||
UNUSED(clientData);
|
||||
|
|
|
@ -178,8 +178,7 @@ static redisContext *getRedisContext(const char *ip, int port,
|
|||
static void freeRedisConfig(redisConfig *cfg);
|
||||
static int fetchClusterSlotsConfiguration(client c);
|
||||
static void updateClusterSlotsConfiguration(void);
|
||||
int showThroughput(struct aeEventLoop *eventLoop, long long id,
|
||||
void *clientData);
|
||||
static long long showThroughput(struct aeEventLoop *eventLoop, long long id, void *clientData);
|
||||
|
||||
/* Dict callbacks */
|
||||
static uint64_t dictSdsHash(const void *key);
|
||||
|
@ -1635,7 +1634,7 @@ tls_usage,
|
|||
exit(exit_status);
|
||||
}
|
||||
|
||||
int showThroughput(struct aeEventLoop *eventLoop, long long id, void *clientData) {
|
||||
static long long showThroughput(struct aeEventLoop *eventLoop, long long id, void *clientData) {
|
||||
UNUSED(eventLoop);
|
||||
UNUSED(id);
|
||||
benchmarkThread *thread = (benchmarkThread *)clientData;
|
||||
|
|
|
@ -1365,7 +1365,7 @@ void cronUpdateMemoryStats(void) {
|
|||
* a macro is used: run_with_period(milliseconds) { .... }
|
||||
*/
|
||||
|
||||
int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
|
||||
static long long serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
|
||||
int j;
|
||||
UNUSED(eventLoop);
|
||||
UNUSED(id);
|
||||
|
|
Loading…
Reference in New Issue