Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
040cb6a4
Commit
040cb6a4
authored
Oct 31, 2023
by
Josh Hershberg
Browse files
Cluster refactor: verifyClusterNodeId need not be 'public'
Signed-off-by:
Josh Hershberg
<
yehoshua@redis.com
>
parent
4944eda6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cluster.h
View file @
040cb6a4
...
@@ -38,7 +38,6 @@ void clusterInitListeners(void);
...
@@ -38,7 +38,6 @@ void clusterInitListeners(void);
void
clusterCron
(
void
);
void
clusterCron
(
void
);
void
clusterBeforeSleep
(
void
);
void
clusterBeforeSleep
(
void
);
clusterNode
*
getNodeByQuery
(
client
*
c
,
struct
redisCommand
*
cmd
,
robj
**
argv
,
int
argc
,
int
*
hashslot
,
int
*
ask
);
clusterNode
*
getNodeByQuery
(
client
*
c
,
struct
redisCommand
*
cmd
,
robj
**
argv
,
int
argc
,
int
*
hashslot
,
int
*
ask
);
int
verifyClusterNodeId
(
const
char
*
name
,
int
length
);
clusterNode
*
clusterLookupNode
(
const
char
*
name
,
int
length
);
clusterNode
*
clusterLookupNode
(
const
char
*
name
,
int
length
);
int
clusterRedirectBlockedClientIfNeeded
(
client
*
c
);
int
clusterRedirectBlockedClientIfNeeded
(
client
*
c
);
void
clusterRedirectClient
(
client
*
c
,
clusterNode
*
n
,
int
hashslot
,
int
error_code
);
void
clusterRedirectClient
(
client
*
c
,
clusterNode
*
n
,
int
hashslot
,
int
error_code
);
...
...
src/cluster_legacy.c
View file @
040cb6a4
...
@@ -104,6 +104,7 @@ sds auxTlsPortGetter(clusterNode *n, sds s);
...
@@ -104,6 +104,7 @@ sds auxTlsPortGetter(clusterNode *n, sds s);
int
auxTlsPortPresent
(
clusterNode
*
n
);
int
auxTlsPortPresent
(
clusterNode
*
n
);
static
void
clusterBuildMessageHdr
(
clusterMsg
*
hdr
,
int
type
,
size_t
msglen
);
static
void
clusterBuildMessageHdr
(
clusterMsg
*
hdr
,
int
type
,
size_t
msglen
);
void
freeClusterLink
(
clusterLink
*
link
);
void
freeClusterLink
(
clusterLink
*
link
);
int
verifyClusterNodeId
(
const
char
*
name
,
int
length
);
int
getNodeDefaultClientPort
(
clusterNode
*
n
)
{
int
getNodeDefaultClientPort
(
clusterNode
*
n
)
{
return
server
.
tls_cluster
?
n
->
tls_port
:
n
->
tcp_port
;
return
server
.
tls_cluster
?
n
->
tls_port
:
n
->
tcp_port
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment