fix: test compile
This commit is contained in:
parent
7cce77c260
commit
5c6c9a8219
|
@ -67,7 +67,7 @@ void *processShellMsg(void *arg) {
|
||||||
int type;
|
int type;
|
||||||
SQueueInfo qinfo = {0};
|
SQueueInfo qinfo = {0};
|
||||||
|
|
||||||
qall = taosAllocateQall();
|
taosAllocateQall(&qall);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
int numOfMsgs = taosReadAllQitemsFromQset(multiQ->qset[idx], qall, &qinfo);
|
int numOfMsgs = taosReadAllQitemsFromQset(multiQ->qset[idx], qall, &qinfo);
|
||||||
|
@ -129,7 +129,7 @@ void *processShellMsg(void *arg) {
|
||||||
void processRequestMsg(void *pParent, SRpcMsg *pMsg, SEpSet *pEpSet) {
|
void processRequestMsg(void *pParent, SRpcMsg *pMsg, SEpSet *pEpSet) {
|
||||||
SRpcMsg *pTemp;
|
SRpcMsg *pTemp;
|
||||||
|
|
||||||
pTemp = taosAllocateQitem(sizeof(SRpcMsg), DEF_QITEM, 0);
|
taosAllocateQitem(sizeof(SRpcMsg), DEF_QITEM, 0, (void **)&pTemp);
|
||||||
memcpy(pTemp, pMsg, sizeof(SRpcMsg));
|
memcpy(pTemp, pMsg, sizeof(SRpcMsg));
|
||||||
|
|
||||||
int32_t idx = balance % multiQ->numOfThread;
|
int32_t idx = balance % multiQ->numOfThread;
|
||||||
|
@ -212,8 +212,8 @@ int main(int argc, char *argv[]) {
|
||||||
multiQ->qset = (STaosQset **)taosMemoryMalloc(sizeof(STaosQset *) * numOfAthread);
|
multiQ->qset = (STaosQset **)taosMemoryMalloc(sizeof(STaosQset *) * numOfAthread);
|
||||||
|
|
||||||
for (int i = 0; i < numOfAthread; i++) {
|
for (int i = 0; i < numOfAthread; i++) {
|
||||||
multiQ->qhandle[i] = taosOpenQueue();
|
taosOpenQueue(&multiQ->qhandle[i]);
|
||||||
multiQ->qset[i] = taosOpenQset();
|
taosOpenQset(&multiQ->qset[i]);
|
||||||
taosAddIntoQset(multiQ->qset[i], multiQ->qhandle[i], NULL);
|
taosAddIntoQset(multiQ->qset[i], multiQ->qhandle[i], NULL);
|
||||||
}
|
}
|
||||||
TThread *threads = taosMemoryMalloc(sizeof(TThread) * numOfAthread);
|
TThread *threads = taosMemoryMalloc(sizeof(TThread) * numOfAthread);
|
||||||
|
|
Loading…
Reference in New Issue