coverage: tsched.c mndTrans.h
This commit is contained in:
parent
f6ecea3ff1
commit
4816290a60
|
@ -82,9 +82,11 @@ void mndTransSetSerial(STrans *pTrans);
|
||||||
void mndTransSetParallel(STrans *pTrans);
|
void mndTransSetParallel(STrans *pTrans);
|
||||||
void mndTransSetOper(STrans *pTrans, EOperType oper);
|
void mndTransSetOper(STrans *pTrans, EOperType oper);
|
||||||
int32_t mndTransCheckConflict(SMnode *pMnode, STrans *pTrans);
|
int32_t mndTransCheckConflict(SMnode *pMnode, STrans *pTrans);
|
||||||
|
#ifndef BUILD_NO_CALL
|
||||||
static int32_t mndTrancCheckConflict(SMnode *pMnode, STrans *pTrans) {
|
static int32_t mndTrancCheckConflict(SMnode *pMnode, STrans *pTrans) {
|
||||||
return mndTransCheckConflict(pMnode, pTrans);
|
return mndTransCheckConflict(pMnode, pTrans);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
int32_t mndTransPrepare(SMnode *pMnode, STrans *pTrans);
|
int32_t mndTransPrepare(SMnode *pMnode, STrans *pTrans);
|
||||||
int32_t mndTransProcessRsp(SRpcMsg *pRsp);
|
int32_t mndTransProcessRsp(SRpcMsg *pRsp);
|
||||||
void mndTransPullup(SMnode *pMnode);
|
void mndTransPullup(SMnode *pMnode);
|
||||||
|
|
|
@ -115,6 +115,7 @@ void *taosInitScheduler(int32_t queueSize, int32_t numOfThreads, const char *lab
|
||||||
return (void *)pSched;
|
return (void *)pSched;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef BUILD_NO_CALL
|
||||||
void *taosInitSchedulerWithInfo(int32_t queueSize, int32_t numOfThreads, const char *label, void *tmrCtrl) {
|
void *taosInitSchedulerWithInfo(int32_t queueSize, int32_t numOfThreads, const char *label, void *tmrCtrl) {
|
||||||
SSchedQueue *pSched = taosInitScheduler(queueSize, numOfThreads, label, NULL);
|
SSchedQueue *pSched = taosInitScheduler(queueSize, numOfThreads, label, NULL);
|
||||||
|
|
||||||
|
@ -125,6 +126,7 @@ void *taosInitSchedulerWithInfo(int32_t queueSize, int32_t numOfThreads, const c
|
||||||
|
|
||||||
return pSched;
|
return pSched;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void *taosProcessSchedQueue(void *scheduler) {
|
void *taosProcessSchedQueue(void *scheduler) {
|
||||||
SSchedMsg msg;
|
SSchedMsg msg;
|
||||||
|
@ -241,6 +243,7 @@ void taosCleanUpScheduler(void *param) {
|
||||||
// taosMemoryFree(pSched);
|
// taosMemoryFree(pSched);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef BUILD_NO_CALL
|
||||||
// for debug purpose, dump the scheduler status every 1min.
|
// for debug purpose, dump the scheduler status every 1min.
|
||||||
void taosDumpSchedulerStatus(void *qhandle, void *tmrId) {
|
void taosDumpSchedulerStatus(void *qhandle, void *tmrId) {
|
||||||
SSchedQueue *pSched = (SSchedQueue *)qhandle;
|
SSchedQueue *pSched = (SSchedQueue *)qhandle;
|
||||||
|
@ -255,3 +258,4 @@ void taosDumpSchedulerStatus(void *qhandle, void *tmrId) {
|
||||||
|
|
||||||
taosTmrReset(taosDumpSchedulerStatus, DUMP_SCHEDULER_TIME_WINDOW, pSched, pSched->pTmrCtrl, &pSched->pTimer);
|
taosTmrReset(taosDumpSchedulerStatus, DUMP_SCHEDULER_TIME_WINDOW, pSched, pSched->pTmrCtrl, &pSched->pTimer);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -31,8 +31,8 @@ class TDTestCase(TBase):
|
||||||
'queryMaxConcurrentTables': '2K',
|
'queryMaxConcurrentTables': '2K',
|
||||||
'streamMax': '1M',
|
'streamMax': '1M',
|
||||||
'totalMemoryKB': '1G',
|
'totalMemoryKB': '1G',
|
||||||
'rpcQueueMemoryAllowed': '1T',
|
#'rpcQueueMemoryAllowed': '1T',
|
||||||
'mndLogRetention': '1P',
|
#'mndLogRetention': '1P',
|
||||||
'streamBufferSize':'2G'
|
'streamBufferSize':'2G'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue