#include <zconf.h>
#include <zlib.h>
Go to the source code of this file.
|
bool | dict_sdi_create (dd::Tablespace *tablespace) |
| Create SDI in a tablespace. More...
|
|
bool | dict_sdi_drop (dd::Tablespace *tablespace) |
| Drop SDI in a tablespace. More...
|
|
bool | dict_sdi_get_keys (const dd::Tablespace &tablespace, sdi_vector_t &vector) |
| Get the SDI keys in a tablespace into the vector provided. More...
|
|
bool | dict_sdi_get (const dd::Tablespace &tablespace, const sdi_key_t *sdi_key, void *sdi, uint64_t *sdi_len) |
| Retrieve SDI from tablespace. More...
|
|
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. More...
|
|
bool | dict_sdi_delete (const dd::Tablespace &tablespace, const dd::Table *table, const sdi_key_t *sdi_key) |
| Delete SDI from tablespace. More...
|
|
◆ dict_sdi_create()
Create SDI in a tablespace.
This API should be used when upgrading a tablespace with no SDI.
- Parameters
-
[in,out] | tablespace | tablespace object |
- Return values
-
◆ dict_sdi_delete()
Delete SDI from tablespace.
- Parameters
-
[in] | tablespace | tablespace object |
[in] | table | table object |
[in] | sdi_key | SDI key to uniquely identify the tablespace object |
- Return values
-
◆ dict_sdi_drop()
Drop SDI in a tablespace.
This API should be used only when SDI is corrupted.
- Parameters
-
[in,out] | tablespace | tablespace object |
- Return values
-
◆ dict_sdi_get()
Retrieve SDI from tablespace.
- Parameters
-
[in] | tablespace | tablespace object |
[in] | sdi_key | SDI key |
[in,out] | sdi | SDI retrieved from tablespace |
[in,out] | sdi_len | in: size of memory allocated out: actual length of SDI |
- Return values
-
false | success |
true | in case of failures like record not found, sdi_len is UINT64MAX_T, else sdi_len is actual length of SDI |
◆ dict_sdi_get_keys()
Get the SDI keys in a tablespace into the vector provided.
- Parameters
-
[in] | tablespace | tablespace object |
[in,out] | vector | vector to hold SDI keys |
- Return values
-
◆ dict_sdi_set()
Insert/Update SDI in tablespace.
- Parameters
-
[in] | hton | handlerton object |
[in] | tablespace | tablespace object |
[in] | table | table object |
[in] | sdi_key | SDI key to uniquely identify the tablespace object |
[in] | sdi | SDI to be stored in tablespace |
[in] | sdi_len | SDI length |
- Return values
-
◆ SDI_KEY_LEN
constexpr const uint32_t SDI_KEY_LEN = 8 |
|
constexpr |
◆ SDI_TYPE_LEN
constexpr const uint32_t SDI_TYPE_LEN = 4 |
|
constexpr |