提交 219e9553 编写于 作者: S Shengliang Guan

refactor: control the memory of the rpc queue

上级 65e9e972
......@@ -28,7 +28,7 @@ typedef struct STaosQnode {
} STaosQnode;
typedef struct STaosQueue {
int32_t memOfItems;
int64_t memOfItems;
int32_t numOfItems;
int32_t threadId;
STaosQnode *head;
......@@ -125,9 +125,9 @@ int32_t taosQueueItemSize(STaosQueue *queue) {
return numOfItems;
}
int32_t taosQueueMemorySize(STaosQueue *queue) {
int64_t taosQueueMemorySize(STaosQueue *queue) {
taosThreadMutexLock(&queue->mutex);
int32_t memOfItems = queue->memOfItems;
int64_t memOfItems = queue->memOfItems;
taosThreadMutexUnlock(&queue->mutex);
return memOfItems;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册