| 207 | void *clientData); |
| 208 | |
| 209 | static sds benchmarkVersion(void) { |
| 210 | sds version; |
| 211 | version = sdscatprintf(sdsempty(), "%s", REDIS_VERSION); |
| 212 | |
| 213 | /* Add git commit and working tree status when available */ |
| 214 | if (strtoll(redisGitSHA1(),NULL,16)) { |
| 215 | version = sdscatprintf(version, " (git:%s", redisGitSHA1()); |
| 216 | if (strtoll(redisGitDirty(),NULL,10)) |
| 217 | version = sdscatprintf(version, "-dirty"); |
| 218 | version = sdscat(version, ")"); |
| 219 | } |
| 220 | return version; |
| 221 | } |
| 222 | |
| 223 | /* Dict callbacks */ |
| 224 | static uint64_t dictSdsHash(const void *key); |
no test coverage detected