From 7553344d9af1828a6a2477938ef575ce3cd7a068 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 6 Apr 2022 20:07:04 +0800 Subject: [PATCH] [td-14493] refactor. --- include/libs/function/function.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/libs/function/function.h b/include/libs/function/function.h index b0ad33a157..25b0cbc6b7 100644 --- a/include/libs/function/function.h +++ b/include/libs/function/function.h @@ -110,10 +110,11 @@ typedef struct SFileBlockInfo { #define FUNCTION_COV 38 typedef struct SResultRowEntryInfo { - int8_t hasResult; // result generated, not NULL value - bool initialized; // output buffer has been initialized - bool complete; // query has completed - uint16_t numOfRes; // num of output result in current buffer + int8_t hasResult:6; // result generated, not NULL value + bool initialized:1; // output buffer has been initialized + bool complete:1; // query has completed + uint8_t isNullRes:1; // the result is null + uint8_t numOfRes:7; // num of output result in current buffer } SResultRowEntryInfo; // determine the real data need to calculated the result