add some log
This commit is contained in:
parent
862bdd5bd2
commit
57269fd737
|
@ -7233,7 +7233,7 @@ void qCleanupQueryMgmt(void* pQMgmt) {
|
||||||
pthread_mutex_destroy(&pQueryMgmt->lock);
|
pthread_mutex_destroy(&pQueryMgmt->lock);
|
||||||
tfree(pQueryMgmt);
|
tfree(pQueryMgmt);
|
||||||
|
|
||||||
qDebug("vgId:%d queryMgmt cleanup completed", vgId);
|
qDebug("vgId:%d, queryMgmt cleanup completed", vgId);
|
||||||
}
|
}
|
||||||
|
|
||||||
void** qRegisterQInfo(void* pMgmt, uint64_t qInfo) {
|
void** qRegisterQInfo(void* pMgmt, uint64_t qInfo) {
|
||||||
|
|
|
@ -486,7 +486,7 @@ static SSyncPeer *syncAddPeer(SSyncNode *pNode, const SNodeInfo *pInfo) {
|
||||||
pPeer->ip = ip;
|
pPeer->ip = ip;
|
||||||
pPeer->port = pInfo->nodePort;
|
pPeer->port = pInfo->nodePort;
|
||||||
pPeer->fqdn[sizeof(pPeer->fqdn) - 1] = 0;
|
pPeer->fqdn[sizeof(pPeer->fqdn) - 1] = 0;
|
||||||
snprintf(pPeer->id, sizeof(pPeer->id), "vgId:%d peer:%s:%u", pNode->vgId, pPeer->fqdn, pPeer->port);
|
snprintf(pPeer->id, sizeof(pPeer->id), "vgId:%d, peer:%s:%u", pNode->vgId, pPeer->fqdn, pPeer->port);
|
||||||
|
|
||||||
pPeer->peerFd = -1;
|
pPeer->peerFd = -1;
|
||||||
pPeer->syncFd = -1;
|
pPeer->syncFd = -1;
|
||||||
|
|
|
@ -128,7 +128,7 @@ static void arbProcessIncommingConnection(int32_t connFd, uint32_t sourceIp) {
|
||||||
}
|
}
|
||||||
|
|
||||||
firstPkt.fqdn[sizeof(firstPkt.fqdn) - 1] = 0;
|
firstPkt.fqdn[sizeof(firstPkt.fqdn) - 1] = 0;
|
||||||
snprintf(pNode->id, sizeof(pNode->id), "vgId:%d peer:%s:%d", firstPkt.sourceId, firstPkt.fqdn, firstPkt.port);
|
snprintf(pNode->id, sizeof(pNode->id), "vgId:%d, peer:%s:%d", firstPkt.sourceId, firstPkt.fqdn, firstPkt.port);
|
||||||
if (firstPkt.syncHead.vgId) {
|
if (firstPkt.syncHead.vgId) {
|
||||||
sDebug("%s, vgId in head is not zero, close the connection", pNode->id);
|
sDebug("%s, vgId in head is not zero, close the connection", pNode->id);
|
||||||
tfree(pNode);
|
tfree(pNode);
|
||||||
|
|
|
@ -110,7 +110,7 @@ void tsdbCloseBufPool(STsdbRepo *pRepo) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tsdbDebug("vgId:%d buffer pool is closed", REPO_ID(pRepo));
|
tsdbDebug("vgId:%d, buffer pool is closed", REPO_ID(pRepo));
|
||||||
}
|
}
|
||||||
|
|
||||||
SListNode *tsdbAllocBufBlockFromPool(STsdbRepo *pRepo) {
|
SListNode *tsdbAllocBufBlockFromPool(STsdbRepo *pRepo) {
|
||||||
|
@ -134,7 +134,7 @@ SListNode *tsdbAllocBufBlockFromPool(STsdbRepo *pRepo) {
|
||||||
pBufBlock->offset = 0;
|
pBufBlock->offset = 0;
|
||||||
pBufBlock->remain = pBufPool->bufBlockSize;
|
pBufBlock->remain = pBufPool->bufBlockSize;
|
||||||
|
|
||||||
tsdbDebug("vgId:%d buffer block is allocated, blockId:%" PRId64, REPO_ID(pRepo), pBufBlock->blockId);
|
tsdbDebug("vgId:%d, buffer block is allocated, blockId:%" PRId64, REPO_ID(pRepo), pBufBlock->blockId);
|
||||||
return pNode;
|
return pNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -229,7 +229,7 @@ static int32_t vnodeProcessQueryMsg(SVnodeObj *pVnode, SVReadMsg *pRead) {
|
||||||
if (handle == NULL) { // failed to register qhandle
|
if (handle == NULL) { // failed to register qhandle
|
||||||
pRsp->code = terrno;
|
pRsp->code = terrno;
|
||||||
terrno = 0;
|
terrno = 0;
|
||||||
vError("vgId:%d QInfo:%p register qhandle failed, return to app, code:%s", pVnode->vgId, (void *)pQInfo,
|
vError("vgId:%d, QInfo:%p register qhandle failed, return to app, code:%s", pVnode->vgId, (void *)pQInfo,
|
||||||
tstrerror(pRsp->code));
|
tstrerror(pRsp->code));
|
||||||
qDestroyQueryInfo(pQInfo); // destroy it directly
|
qDestroyQueryInfo(pQInfo); // destroy it directly
|
||||||
return pRsp->code;
|
return pRsp->code;
|
||||||
|
|
Loading…
Reference in New Issue