summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorzhenwei pi <pizhenwei@bytedance.com>2023-01-04 16:52:56 +0800
committerGitHub <noreply@github.com>2023-01-04 10:52:56 +0200
commitdec529f4be3e3314300bb513e7a9f3af636e13b0 (patch)
treeaeca1a2a40c5da584fac4c220aaf85d4064ad6e4 /src/server.h
parent884ca601b21ec6ef4d216ae850c0cf503f762623 (diff)
downloadredis-dec529f4be3e3314300bb513e7a9f3af636e13b0.tar.gz
Introduce .is_local method for connection layer (#11672)
Introduce .is_local method to connection, and implement for TCP/TLS/ Unix socket, also drop 'int islocalClient(client *c)'. Then we can hide the detail into the specific connection types. Uplayer tests a connection is local or not by abstract method only. Signed-off-by: zhenwei pi <pizhenwei@bytedance.com> Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/server.h b/src/server.h
index 1201cab3b..86611c321 100644
--- a/src/server.h
+++ b/src/server.h
@@ -2566,7 +2566,6 @@ int handleClientsWithPendingWritesUsingThreads(void);
int handleClientsWithPendingReadsUsingThreads(void);
int stopThreadedIOIfNeeded(void);
int clientHasPendingReplies(client *c);
-int islocalClient(client *c);
int updateClientMemUsageAndBucket(client *c);
void removeClientFromMemUsageBucket(client *c, int allow_eviction);
void unlinkClient(client *c);