add asyncFreeDictTable tokeydb-diagnostic-tool.cpp to avoid linker error

Former-commit-id: 6b1509932f592ffffb9dd5d06de7f313d44e4394
This commit is contained in:
malavan 2021-08-16 21:35:52 +00:00
parent 9f1f29543f
commit 6f5c6bcaf1

View File

@ -211,6 +211,11 @@ extern "C" void _serverAssert(const char *estr, const char *file, int line) {
*((char*)-1) = 'x';
}
/* asyncFreeDictTable is needed by dict */
extern "C" void asyncFreeDictTable(struct dictEntry **de) {
zfree(de);
}
static redisContext *getRedisContext(const char *ip, int port,
const char *hostsocket)
{