refactor: update the log.

This commit is contained in:
Haojun Liao 2023-04-18 16:08:51 +08:00
parent dc78233f86
commit 7a8dd0db45
2 changed files with 5 additions and 5 deletions

View File

@ -1280,7 +1280,7 @@ int32_t tqStartStreamTasks(STQ* pTq) {
if (pMeta->walScan > 1) { if (pMeta->walScan > 1) {
tqDebug("vgId:%d wal read task has been launched, remain scan times:%d", vgId, pMeta->walScan); tqDebug("vgId:%d wal read task has been launched, remain scan times:%d", vgId, pMeta->walScan);
taosWUnLockLatch(&pTq->pStreamMeta->lock); taosWUnLockLatch(&pMeta->lock);
return 0; return 0;
} }
@ -1294,7 +1294,7 @@ int32_t tqStartStreamTasks(STQ* pTq) {
int32_t numOfTasks = taosHashGetSize(pTq->pStreamMeta->pTasks); int32_t numOfTasks = taosHashGetSize(pTq->pStreamMeta->pTasks);
tqInfo("vgId:%d start wal scan stream tasks, tasks:%d", vgId, numOfTasks); tqDebug("vgId:%d start wal scan stream tasks, tasks:%d", vgId, numOfTasks);
initOffsetForAllRestoreTasks(pTq); initOffsetForAllRestoreTasks(pTq);
pRunReq->head.vgId = vgId; pRunReq->head.vgId = vgId;

View File

@ -27,7 +27,7 @@ int tqStreamTasksScanWal(STQ* pTq) {
int64_t st = taosGetTimestampMs(); int64_t st = taosGetTimestampMs();
while (1) { while (1) {
tqInfo("vgId:%d continue check if data in wal are available", vgId); tqDebug("vgId:%d continue check if data in wal are available", vgId);
// check all restore tasks // check all restore tasks
bool allFull = true; bool allFull = true;
@ -50,8 +50,8 @@ int tqStreamTasksScanWal(STQ* pTq) {
} }
} }
double el = (taosGetTimestampMs() - st) / 1000.0; int64_t el = (taosGetTimestampMs() - st);
tqInfo("vgId:%d scan wal for stream tasks completed, elapsed time:%.2f sec", vgId, el); tqDebug("vgId:%d scan wal for stream tasks completed, elapsed time:%"PRId64" ms", vgId, el);
// restore wal scan flag // restore wal scan flag
// atomic_store_8(&pTq->pStreamMeta->walScan, 0); // atomic_store_8(&pTq->pStreamMeta->walScan, 0);