Browse Source

MT#55283 convert async_last to int64_t

Change-Id: I86284e3b6c0dc9c52be0e2ee54bf63a0490cece1
pull/1938/head
Richard Fuchs 8 months ago
parent
commit
f35881548d
2 changed files with 7 additions and 7 deletions
  1. +1
    -1
      daemon/redis.c
  2. +6
    -6
      include/redis.h

+ 1
- 1
daemon/redis.c View File

@ -801,7 +801,7 @@ void redis_delete_async_loop(void *d) {
return ;
}
r->async_last = timeval_from_us(rtpe_now).tv_sec;
r->async_last = rtpe_now;
// init libevent for pthread usage
if (evthread_use_pthreads() < 0) {


+ 6
- 6
include/redis.h View File

@ -58,13 +58,13 @@ struct redis {
int64_t restore_tick_us;
int current_db;
struct event_base *async_ev;
struct redisAsyncContext *async_ctx;
mutex_t async_lock;
GQueue async_queue;
int async_last;
struct event_base *async_ev;
struct redisAsyncContext *async_ctx;
mutex_t async_lock;
GQueue async_queue;
int64_t async_last;
bool update_resolve;
bool update_resolve;
};
struct redis_hash {


Loading…
Cancel
Save