1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +03:00

MCOL-4566: Extend CompressedDBFileHeader struct with new fields.

* This patch extends CompressedDBFileHeader struct with new fields:
  `fColumWidth`, `fColDataType`, which are necessary to rebuild extent map
  from the given file. Note: new fields do not change the memory
  layout of the struct, because the size is calculated as
  max(sizeof(CompressedDBFileHeader), HDR_BUF_LEN)).

* This patch changes API of some functions, by adding new function
  argument `colDataType` when needed, to be able to call `initHdr`
  function with colDataType value.
This commit is contained in:
Denis Khalikov
2021-03-05 14:48:53 +03:00
parent 5be4bfe647
commit a2efa1efeb
11 changed files with 138 additions and 54 deletions

View File

@@ -404,6 +404,7 @@ public:
nBlocks, // number of blocks
emptyVal, // NULL value
width, // width
execplan::CalpontSystemCatalog::BIGINT,
1 ); // dbroot
CPPUNIT_ASSERT( rc == NO_ERROR );
@@ -987,6 +988,7 @@ public:
nBlocks, // number of blocks
emptyVal, // NULL value
width, // width
execplan::CalpontSystemCatalog::BIGINT,
dbRoot ); // dbroot
CPPUNIT_ASSERT( rc == NO_ERROR );
@@ -1011,6 +1013,7 @@ public:
BYTE_PER_BLOCK, // number of blocks
emptyVal,
width,
execplan::CalpontSystemCatalog::BIGINT,
false, // use existing file
true, // expand the extent
false, // add full (not abbreviated) extent
@@ -1031,6 +1034,7 @@ public:
nBlocks, // number of blocks
emptyVal, // NULL value
width, // width
execplan::CalpontSystemCatalog::BIGINT,
dbRoot ); // dbroot
CPPUNIT_ASSERT( rc == NO_ERROR );
@@ -1054,6 +1058,7 @@ public:
BYTE_PER_BLOCK, // number of blocks
emptyVal,
width,
execplan::CalpontSystemCatalog::BIGINT,
false, // use existing file
true, // expand the extent
false, // add full (not abbreviated) extent