From 7c511c044579f3a9ef249456af1474e33f1e9a7f Mon Sep 17 00:00:00 2001 From: slguan Date: Tue, 10 Sep 2019 13:37:21 +0800 Subject: [PATCH] log format error --- src/system/src/vnodeImport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/src/vnodeImport.c b/src/system/src/vnodeImport.c index b7a5a71961..6d4864d081 100644 --- a/src/system/src/vnodeImport.c +++ b/src/system/src/vnodeImport.c @@ -877,8 +877,8 @@ int vnodeImportPoints(SMeterObj *pObj, char *cont, int contLen, char source, voi int lastId = (*(TSKEY *)(payload+pObj->bytesPerPoint*(rows-1)))/pVnode->cfg.daysPerFile/tsMsPerDay[pVnode->cfg.precision]; int cfile = now/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 import, firstKey: %ld lastKey: %ld", - pObj->vnode, pObj->sid, pObj->meterId, *(TSKEY *)(payload), *(TSKEY *)(payload+pObj->bytesPerPoint*(rows-1))); + dError("vid:%d sid:%d id:%s, invalid timestamp to import, rows:%d firstKey: %ld lastKey: %ld", + pObj->vnode, pObj->sid, pObj->meterId, rows, *(TSKEY *)(payload), *(TSKEY *)(payload+pObj->bytesPerPoint*(rows-1))); return TSDB_CODE_TIMESTAMP_OUT_OF_RANGE; } -- GitLab