Skip to content

Commit 6269b54

Browse files
committed
rebase on 09-14
1 parent 6c3bc1f commit 6269b54

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

src/cluster.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2136,26 +2136,6 @@ int writeNodenamePingExt(clusterMsgPingExt **cursor) {
21362136
return extension_size;
21372137
}
21382138

2139-
/* Write the nodename ping extension at the start of the cursor. This function
2140-
* will update the cursor to point to the end of the written extension and
2141-
* will return the amount of bytes written. */
2142-
int writeNodenamePingExt(clusterMsgPingExt **cursor) {
2143-
/* If nodename is not set, we don't send this extension */
2144-
if (sdslen(myself->nodename) == 0) return 0;
2145-
2146-
/* Add the nodename information at the extension cursor */
2147-
clusterMsgPingExtNodename *ext = &(*cursor)->ext[0].nodename;
2148-
memcpy(ext->nodename, myself->nodename, sdslen(myself->nodename));
2149-
uint32_t extension_size = getNodenamePingExtSize();
2150-
2151-
/* Move the write cursor */
2152-
(*cursor)->type = CLUSTERMSG_EXT_TYPE_NODENAME;
2153-
(*cursor)->length = htonl(extension_size);
2154-
/* Make sure the string is NULL terminated by adding 1 */
2155-
*cursor = (clusterMsgPingExt *) (ext->nodename + EIGHT_BYTE_ALIGN(sdslen(myself->nodename) + 1));
2156-
return extension_size;
2157-
}
2158-
21592139
/* We previously validated the extensions, so this function just needs to
21602140
* handle the extensions. */
21612141
void clusterProcessPingExtensions(clusterMsg *hdr, clusterLink *link) {

src/config.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2609,7 +2609,6 @@ int updateClusterNodename(const char **err) {
26092609
return 1;
26102610
}
26112611

2612-
#ifdef USE_OPENSSL
26132612
static int applyTlsCfg(const char **err) {
26142613
UNUSED(err);
26152614

0 commit comments

Comments
 (0)