提交 56b7a132 编写于 作者: H hjxilinx

fix sub/pub bug in returning data to client

上级 ce15900b
...@@ -483,9 +483,8 @@ void vnodeExecuteRetrieveReq(SSchedMsg *pSched) { ...@@ -483,9 +483,8 @@ void vnodeExecuteRetrieveReq(SSchedMsg *pSched) {
pMsg += size; pMsg += size;
// write the progress information of each meter to response // write the progress information of each meter to response this is required by subscriptions
// this is required by subscriptions if (pQInfo != NULL && code == TSDB_CODE_SUCCESS) {
if (pQInfo != NULL ) {
if (pQInfo->pTableQuerySupporter != NULL && pQInfo->pTableQuerySupporter->pMeterSidExtInfo != NULL) { if (pQInfo->pTableQuerySupporter != NULL && pQInfo->pTableQuerySupporter->pMeterSidExtInfo != NULL) {
*((int32_t *)pMsg) = htonl(pQInfo->pTableQuerySupporter->numOfMeters); *((int32_t *)pMsg) = htonl(pQInfo->pTableQuerySupporter->numOfMeters);
pMsg += sizeof(int32_t); pMsg += sizeof(int32_t);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册