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 67ffa578d7
commit 27b7f22b52

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)
{