fix: rpc query limit
This commit is contained in:
parent
7d71a07a6d
commit
f464ecb932
|
@ -16,11 +16,11 @@
|
|||
|
||||
typedef struct STestMsg {
|
||||
uint16_t msgType;
|
||||
void *pCont;
|
||||
void * pCont;
|
||||
int contLen;
|
||||
int32_t code;
|
||||
void *handle; // rpc handle returned to app
|
||||
void *ahandle; // app handle set by client
|
||||
void * handle; // rpc handle returned to app
|
||||
void * ahandle; // app handle set by client
|
||||
int noResp; // has response or not(default 0, 0: resp, 1: no resp);
|
||||
int persistHandle; // persist handle or not
|
||||
} STestMsg;
|
||||
|
@ -37,7 +37,7 @@ class UtilTesProc : public ::testing::Test {
|
|||
head.msgType = 2;
|
||||
head.noResp = 3;
|
||||
head.persistHandle = 4;
|
||||
|
||||
tsRpcQueueMemoryAllowed = 1024 * 1024 * 64;
|
||||
taosRemoveDir("/tmp/td");
|
||||
taosMkDir("/tmp/td");
|
||||
tstrncpy(tsLogDir, "/tmp/td", PATH_MAX);
|
||||
|
@ -236,7 +236,8 @@ TEST_F(UtilTesProc, 03_Handle) {
|
|||
int32_t i = 0;
|
||||
for (i = 0; i < 20; ++i) {
|
||||
head.handle = (void *)((int64_t)i);
|
||||
ASSERT_EQ(taosProcPutToChildQ(cproc, &head, sizeof(STestMsg), body, i, (void *)((int64_t)i), i, PROC_FUNC_REQ), 0);
|
||||
ASSERT_EQ(taosProcPutToChildQ(cproc, &head, sizeof(STestMsg), body, i, (void *)((int64_t)i), i, PROC_FUNC_REQ),
|
||||
0);
|
||||
}
|
||||
|
||||
cfg.isChild = true;
|
||||
|
|
Loading…
Reference in New Issue