50 uLongf zlen = compressBound(
static_cast<uLong
>(
m_src_len));
51 auto src =
reinterpret_cast<const Bytef *
>(
m_sdi);
133 void *sdi, uint64_t *sdi_len);
147 const void *sdi, uint64_t sdi_len);
#define Z_BUF_ERROR
Definition: azlib.h:170
#define Z_OK
Definition: azlib.h:163
#define Z_STREAM_ERROR
Definition: azlib.h:167
#define Z_MEM_ERROR
Definition: azlib.h:169
Compress SDI using zlib.
Definition: dict0sdi.h:41
const byte * get_data() const
Definition: dict0sdi.h:82
~Sdi_Compressor()
Definition: dict0sdi.h:46
void compress()
Compress the SDI.
Definition: dict0sdi.h:49
uint32_t m_src_len
Length of uncompressed SDI.
Definition: dict0sdi.h:92
byte * m_comp_sdi
Compressed SDI.
Definition: dict0sdi.h:98
Sdi_Compressor(uint32_t src_len, const void *sdi)
Definition: dict0sdi.h:43
uint32_t get_comp_len() const
Definition: dict0sdi.h:88
uint32_t get_src_len() const
Definition: dict0sdi.h:85
uint32_t m_comp_len
Length of compressed SDI.
Definition: dict0sdi.h:94
const void * m_sdi
Uncompressed SDI.
Definition: dict0sdi.h:96
Definition: tablespace.h:55
The class fatal is used to emit an error message and stop the server by crashing it.
Definition: ut0log.h:252
bool dict_sdi_delete(const dd::Tablespace &tablespace, const dd::Table *table, const sdi_key_t *sdi_key)
Delete SDI from tablespace.
Definition: dict0sdi.cc:415
bool dict_sdi_get_keys(const dd::Tablespace &tablespace, sdi_vector_t &vector)
Get the SDI keys in a tablespace into the vector provided.
Definition: dict0sdi.cc:188
bool dict_sdi_get(const dd::Tablespace &tablespace, const sdi_key_t *sdi_key, void *sdi, uint64_t *sdi_len)
Retrieve SDI from tablespace.
Definition: dict0sdi.cc:226
bool dict_sdi_create(dd::Tablespace *tablespace)
Create SDI in a tablespace.
Definition: dict0sdi.cc:125
bool dict_sdi_drop(dd::Tablespace *tablespace)
Drop SDI in a tablespace.
Definition: dict0sdi.cc:168
bool dict_sdi_set(handlerton *hton, const dd::Tablespace &tablespace, const dd::Table *table, const sdi_key_t *sdi_key, const void *sdi, uint64_t sdi_len)
Insert/Update SDI in tablespace.
Definition: dict0sdi.cc:307
constexpr const uint32_t SDI_TYPE_LEN
Size of sdi_key_t::type.
Definition: dict0sdi.h:35
constexpr const uint32_t SDI_KEY_LEN
Size of sdi_key_t::id.
Definition: dict0sdi.h:38
void * malloc_withkey(PSI_memory_key_t key, std::size_t size) noexcept
Dynamically allocates storage of given size.
Definition: ut0new.h:596
std::vector< T, ut::allocator< T > > vector
Specialization of vector which uses allocator.
Definition: ut0new.h:2874
void free(void *ptr) noexcept
Releases storage which has been dynamically allocated through any of the ut::malloc*(),...
Definition: ut0new.h:717
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2622
Key to identify a dictionary object.
Definition: handler.h:126
Definition: handler.h:135
#define UT_LOCATION_HERE
Definition: ut0core.h:47
#define ut_ad(EXPR)
Debug assertion.
Definition: ut0dbg.h:69
#define UT_NEW_THIS_FILE_PSI_KEY
Definition: ut0new.h:564