| 2747 | } |
| 2748 | |
| 2749 | static 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 |
no test coverage detected