From a7fea5b4adbfdf54a6f23136a228b9cb77ebcd9e Mon Sep 17 00:00:00 2001 From: slguan Date: Tue, 10 Sep 2019 09:54:04 +0800 Subject: [PATCH] log format error --- src/rpc/src/trpc.c | 2 +- src/system/src/vnodeMeter.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rpc/src/trpc.c b/src/rpc/src/trpc.c index cf718fc3c8..c37103128e 100644 --- a/src/rpc/src/trpc.c +++ b/src/rpc/src/trpc.c @@ -512,7 +512,7 @@ int taosGetRpcConn(int chann, int sid, char *meterId, STaosRpc *pServer, SRpcCon if (pServer->afp) { int ret = (*pServer->afp)(meterId, &pConn->spi, &pConn->encrypt, pConn->secret, pConn->ckey); if (ret != 0) { - tTrace("%s cid:%d sid:%d id:%s, meterId not there pConn:%p", pServer->label, chann, sid, pConn->meterId, + tTrace("%s cid:%d sid:%d id:%s, meterId not there, localPort:%d pConn:%p", pServer->label, chann, sid, pConn->meterId, pConn->localPort, pConn); return ret; } diff --git a/src/system/src/vnodeMeter.c b/src/system/src/vnodeMeter.c index f94276290f..bffcf849b5 100644 --- a/src/system/src/vnodeMeter.c +++ b/src/system/src/vnodeMeter.c @@ -576,8 +576,8 @@ int vnodeInsertPoints(SMeterObj *pObj, char *cont, int contLen, char source, voi int firstId = firstKey/pVnode->cfg.daysPerFile/tsMsPerDay[pVnode->cfg.precision]; int lastId = (*(TSKEY *)(pData + pObj->bytesPerPoint * (numOfPoints - 1)))/pVnode->cfg.daysPerFile/tsMsPerDay[pVnode->cfg.precision]; if ((firstId <= cfile - pVnode->maxFiles) || (firstId > cfile + 1) || (lastId <= cfile - pVnode->maxFiles) || (lastId > cfile + 1)) { - dError("vid:%d sid:%d id:%s, invalid timestamp to insert, firstKey: %ld lastKey: %ld ", pObj->vnode, pObj->sid, - pObj->meterId, firstKey, (*(TSKEY *)(pData + pObj->bytesPerPoint * (numOfPoints - 1)))); + dError("vid:%d sid:%d id:%s, invalid timestamp to insert, numOfPoints:%d firstKey: %ld lastKey: %ld ", pObj->vnode, pObj->sid, + pObj->meterId, numOfPoints, firstKey, (*(TSKEY *)(pData + pObj->bytesPerPoint * (numOfPoints - 1)))); return TSDB_CODE_TIMESTAMP_OUT_OF_RANGE; } -- GitLab