From f35881548d2b36662377e04cddf3af998cad7085 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 15 Apr 2025 11:54:45 -0400 Subject: [PATCH] MT#55283 convert async_last to int64_t Change-Id: I86284e3b6c0dc9c52be0e2ee54bf63a0490cece1 --- daemon/redis.c | 2 +- include/redis.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/daemon/redis.c b/daemon/redis.c index d615d095a..8228adba6 100644 --- a/daemon/redis.c +++ b/daemon/redis.c @@ -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) { diff --git a/include/redis.h b/include/redis.h index 592571f1b..250b803ae 100644 --- a/include/redis.h +++ b/include/redis.h @@ -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 {