From a7ac6c1e43907321ea11344da1b0c13047fc6c0f Mon Sep 17 00:00:00 2001 From: John Sully Date: Sun, 22 Oct 2023 03:47:48 +0000 Subject: [PATCH] Remove unused variable --- src/networking.cpp | 1 - src/replication.cpp | 1 - src/server.h | 1 - 3 files changed, 3 deletions(-) diff --git a/src/networking.cpp b/src/networking.cpp index 1728b5f29..7aac41ca5 100644 --- a/src/networking.cpp +++ b/src/networking.cpp @@ -163,7 +163,6 @@ client *createClient(connection *conn, int iel) { c->multibulklen = 0; c->bulklen = -1; c->sentlen = 0; - c->sentlenAsync = 0; c->flags = 0; c->fPendingAsyncWrite = FALSE; c->fPendingAsyncWriteHandler = FALSE; diff --git a/src/replication.cpp b/src/replication.cpp index f3552f9d1..8a032182d 100644 --- a/src/replication.cpp +++ b/src/replication.cpp @@ -4343,7 +4343,6 @@ void replicationCacheMaster(redisMaster *mi, client *c) { if (c->flags & CLIENT_MULTI) discardTransaction(c); listEmpty(c->reply); c->sentlen = 0; - c->sentlenAsync = 0; c->reply_bytes = 0; c->bufpos = 0; resetClient(c); diff --git a/src/server.h b/src/server.h index d3d69d07f..6ee0c53b3 100644 --- a/src/server.h +++ b/src/server.h @@ -1610,7 +1610,6 @@ struct client { unsigned long long reply_bytes; /* Tot bytes of objects in reply list. */ size_t sentlen; /* Amount of bytes already sent in the current buffer or object being sent. */ - size_t sentlenAsync; /* same as sentlen buf for async buffers (which are a different stream) */ time_t ctime; /* Client creation time. */ long duration; /* Current command duration. Used for measuring latency of blocking/non-blocking cmds */ time_t lastinteraction; /* Time of the last interaction, used for timeout */