diff --git a/src/include/storage/page_compression.h b/src/include/storage/page_compression.h index a435f79a61c8dd44cd37415394c531409eab9e22..25598e9406c014901fcfdf0f0111eeb3b4fa43ac 100644 --- a/src/include/storage/page_compression.h +++ b/src/include/storage/page_compression.h @@ -81,19 +81,19 @@ typedef struct HeapPageCompressData { do { \ (node).opt = 0; \ (node).opt = (node).opt << gCmpBitStruct[KPHC_CMP_BYTE_CONVERT_INDEX].bitLen; \ - (node).opt = (byteConvert)&gCmpBitStruct[KPHC_CMP_BYTE_CONVERT_INDEX].mask; \ + (node).opt += (byteConvert)&gCmpBitStruct[KPHC_CMP_BYTE_CONVERT_INDEX].mask; \ (node).opt = (node).opt << gCmpBitStruct[KPHC_CMP_DIFF_CONVERT_INDEX].bitLen; \ - (node).opt = (diffConvert)&gCmpBitStruct[KPHC_CMP_DIFF_CONVERT_INDEX].mask; \ + (node).opt += (diffConvert)&gCmpBitStruct[KPHC_CMP_DIFF_CONVERT_INDEX].mask; \ (node).opt = (node).opt << gCmpBitStruct[KPHC_CMP_PRE_CHUNK_INDEX].bitLen; \ - (node).opt = (preChunks)&gCmpBitStruct[KPHC_CMP_PRE_CHUNK_INDEX].mask; \ + (node).opt += (preChunks)&gCmpBitStruct[KPHC_CMP_PRE_CHUNK_INDEX].mask; \ (node).opt = (node).opt << gCmpBitStruct[KPHC_CMP_COMPERSS_LEVEL_SYMBOL_INDEX].bitLen; \ - (node).opt = (symbol)&gCmpBitStruct[KPHC_CMP_COMPERSS_LEVEL_SYMBOL_INDEX].mask; \ + (node).opt += (symbol)&gCmpBitStruct[KPHC_CMP_COMPERSS_LEVEL_SYMBOL_INDEX].mask; \ (node).opt = (node).opt << gCmpBitStruct[KPHC_CMP_LEVEL_INDEX].bitLen; \ - (node).opt = (level)&gCmpBitStruct[KPHC_CMP_LEVEL_INDEX].mask; \ + (node).opt += (level)&gCmpBitStruct[KPHC_CMP_LEVEL_INDEX].mask; \ (node).opt = (node).opt << gCmpBitStruct[KPHC_CMP_ALGORITHM_INDEX].bitLen; \ - (node).opt = (algorithm)&gCmpBitStruct[KPHC_CMP_ALGORITHM_INDEX].mask; \ + (node).opt += (algorithm)&gCmpBitStruct[KPHC_CMP_ALGORITHM_INDEX].mask; \ (node).opt = (node).opt << gCmpBitStruct[KPHC_CMP_CHUNK_SIZE_INDEX].bitLen; \ - (node).opt = (chunkSize)&gCmpBitStruct[KPHC_CMP_CHUNK_SIZE_INDEX].mask; \ + (node).opt += (chunkSize)&gCmpBitStruct[KPHC_CMP_CHUNK_SIZE_INDEX].mask; \ } while (0) #define SUPPORT_COMPRESSED(relKind, relam) \