From 71ea621acf1b91c366b231c7e7ed98737133db4d Mon Sep 17 00:00:00 2001 From: hjxilinx Date: Sun, 3 May 2020 23:22:33 +0800 Subject: [PATCH] [td-168] rpc cache problem --- src/rpc/src/rpcCache.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rpc/src/rpcCache.c b/src/rpc/src/rpcCache.c index ab9e679acf..5ba8e00aa8 100644 --- a/src/rpc/src/rpcCache.c +++ b/src/rpc/src/rpcCache.c @@ -147,6 +147,8 @@ void rpcAddConnIntoCache(void *handle, void *data, char *fqdn, uint16_t port, in pCache->total++; + printf("--------put back, %s, %d\n", fqdn, hash); + tTrace("%p %s:%hu:%d:%d:%p added into cache, connections:%d", data, fqdn, port, connType, hash, pNode, pCache->count[hash]); return; @@ -202,6 +204,8 @@ void *rpcGetConnFromCache(void *handle, char *fqdn, uint16_t port, int8_t connTy if (pData) { tTrace("%p %s:%hu:%d:%d:%p retrieved from cache, connections:%d", pData, fqdn, port, connType, hash, pNode, pCache->count[hash]); + } else { + tTrace("%p %s:%hu:%d:%d:%p failed to retrieve conn from cache, connections:%d", pData, fqdn, port, connType, hash, pNode, pCache->count[hash]); } return pData; -- GitLab