diff --git a/src/rpc/src/rpcMain.c b/src/rpc/src/rpcMain.c index 71e1651ce1c54d6a556b0a8c13a8c4543daa86de..4a28cb4ff48e59976672300dca7fb71e56aa1e67 100644 --- a/src/rpc/src/rpcMain.c +++ b/src/rpc/src/rpcMain.c @@ -577,6 +577,7 @@ static void rpcReleaseConn(SRpcConn *pConn) { rpcFreeMsg(pConn->pRspMsg); // it may have a response msg saved, but not request msg } + // lockedBy can not be reset, since it maybe hold by a thread int sid = pConn->sid; int64_t lockedBy = pConn->lockedBy; memset(pConn, 0, sizeof(SRpcConn));