|
56 | 56 | #include "sql/dd/dictionary.h" // dd::Dictionary |
57 | 57 | #include "sql/debug_sync.h" |
58 | 58 | #include "sql/json_dom.h" |
| 59 | +#include "sql/plugin_table.h" |
59 | 60 | #include "sql/sql_audit.h" |
60 | 61 | #include "sql/sql_class.h" |
61 | 62 | #include "sql/sql_lex.h" |
@@ -3257,6 +3258,11 @@ std::string dump_ingest_external_file_options( |
3257 | 3258 | return s.str(); |
3258 | 3259 | } |
3259 | 3260 |
|
| 3261 | +static bool rocksdb_ddse_dict_init(dict_init_mode_t dict_init_mode, |
| 3262 | + uint version, |
| 3263 | + List<const dd::Object_table> *tables, |
| 3264 | + List<const Plugin_tablespace> *tablespaces); |
| 3265 | + |
3260 | 3266 | /* |
3261 | 3267 | Very short (functor-like) interface to be passed to |
3262 | 3268 | Rdb_transaction::walk_tx_list() |
@@ -7432,6 +7438,8 @@ static int rocksdb_init_internal(void *const p) { |
7432 | 7438 | rocksdb_hton->clone_interface.clone_apply = rocksdb_clone_apply; |
7433 | 7439 | rocksdb_hton->clone_interface.clone_apply_end = rocksdb_clone_apply_end; |
7434 | 7440 |
|
| 7441 | + rocksdb_hton->ddse_dict_init = rocksdb_ddse_dict_init; |
| 7442 | + |
7435 | 7443 | rocksdb_hton->flags = HTON_SUPPORTS_EXTENDED_KEYS | HTON_CAN_RECREATE; |
7436 | 7444 |
|
7437 | 7445 | rocksdb_hton->partition_flags = rocksdb_partition_flags; |
@@ -19020,6 +19028,22 @@ static bool parse_fault_injection_params( |
19020 | 19028 | return false; |
19021 | 19029 | } |
19022 | 19030 |
|
| 19031 | +static bool rocksdb_ddse_dict_init( |
| 19032 | + dict_init_mode_t dict_init_mode, [[maybe_unused]] uint version, |
| 19033 | + [[maybe_unused]] List<const dd::Object_table> *tables, |
| 19034 | + List<const Plugin_tablespace> *tablespaces) { |
| 19035 | + assert(tables && tables->is_empty()); |
| 19036 | + assert(tablespaces && tablespaces->is_empty()); |
| 19037 | + |
| 19038 | + assert(dict_init_mode == DICT_INIT_CREATE_FILES || |
| 19039 | + dict_init_mode == DICT_INIT_CHECK_FILES); |
| 19040 | + |
| 19041 | + static Plugin_tablespace dd_space("mysql", "", "", "", rocksdb_hton_name); |
| 19042 | + tablespaces->push_back(&dd_space); |
| 19043 | + |
| 19044 | + return false; |
| 19045 | +} |
| 19046 | + |
19023 | 19047 | } // namespace myrocks |
19024 | 19048 |
|
19025 | 19049 | /* |
|
0 commit comments