Skip to content

Commit

Permalink
rebase on 09-14
Browse files Browse the repository at this point in the history
  • Loading branch information
hwware committed Sep 14, 2022
1 parent 6c3bc1f commit 6269b54
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
20 changes: 0 additions & 20 deletions src/cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -2136,26 +2136,6 @@ int writeNodenamePingExt(clusterMsgPingExt **cursor) {
return extension_size;
}

/* Write the nodename ping extension at the start of the cursor. This function
* will update the cursor to point to the end of the written extension and
* will return the amount of bytes written. */
int writeNodenamePingExt(clusterMsgPingExt **cursor) {
/* If nodename is not set, we don't send this extension */
if (sdslen(myself->nodename) == 0) return 0;

/* Add the nodename information at the extension cursor */
clusterMsgPingExtNodename *ext = &(*cursor)->ext[0].nodename;
memcpy(ext->nodename, myself->nodename, sdslen(myself->nodename));
uint32_t extension_size = getNodenamePingExtSize();

/* Move the write cursor */
(*cursor)->type = CLUSTERMSG_EXT_TYPE_NODENAME;
(*cursor)->length = htonl(extension_size);
/* Make sure the string is NULL terminated by adding 1 */
*cursor = (clusterMsgPingExt *) (ext->nodename + EIGHT_BYTE_ALIGN(sdslen(myself->nodename) + 1));
return extension_size;
}

/* We previously validated the extensions, so this function just needs to
* handle the extensions. */
void clusterProcessPingExtensions(clusterMsg *hdr, clusterLink *link) {
Expand Down
1 change: 0 additions & 1 deletion src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -2609,7 +2609,6 @@ int updateClusterNodename(const char **err) {
return 1;
}

#ifdef USE_OPENSSL
static int applyTlsCfg(const char **err) {
UNUSED(err);

Expand Down

0 comments on commit 6269b54

Please sign in to comment.