MCPcopy Create free account
hub / github.com/F-Stack/f-stack / clusterManagerGetNodeRDBFilename

Function clusterManagerGetNodeRDBFilename

app/redis-6.2.6/src/redis-cli.c:2749–2757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2747}
2748
2749static sds clusterManagerGetNodeRDBFilename(clusterManagerNode *node) {
2750 assert(config.cluster_manager_command.backup_dir);
2751 sds filename = sdsnew(config.cluster_manager_command.backup_dir);
2752 if (filename[sdslen(filename) - 1] != '/')
2753 filename = sdscat(filename, "/");
2754 filename = sdscatprintf(filename, "redis-node-%s-%d-%s.rdb", node->ip,
2755 node->port, node->name);
2756 return filename;
2757}
2758
2759/* Check whether reply is NULL or its type is REDIS_REPLY_ERROR. In the
2760 * latest case, if the 'err' arg is not NULL, it gets allocated with a copy

Callers 1

getRDBFunction · 0.85

Calls 4

sdsnewFunction · 0.85
sdslenFunction · 0.85
sdscatFunction · 0.85
sdscatprintfFunction · 0.85

Tested by

no test coverage detected