mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fixed RocksDB to follow THD ha_data protocol
Use thd_get_ha_data()/thd_set_ha_data() which protect against plugin removal until it has THD ha_data. Do not reset THD ha_data in rocksdb_close_connection(), cleaner approach is to let ha_close_connection() do it. Removed transaction objects cleanup from rocksdb_done_func(). As we lock plugin properly, there must be no transaction objects during RocksDB shutdown.
This commit is contained in:
@@ -52,8 +52,8 @@ namespace myrocks {
|
||||
Since we cannot or don't want to change the API in any way, we can use this
|
||||
mechanism to define readability tokens that look like C++ namespaces, but are
|
||||
not enforced in any way by the compiler, since the pre-compiler strips them
|
||||
out. However, on the calling side, code looks like my_core::thd_ha_data()
|
||||
rather than plain a thd_ha_data() call. This technique adds an immediate
|
||||
out. However, on the calling side, code looks like my_core::thd_get_ha_data()
|
||||
rather than plain a thd_get_ha_data() call. This technique adds an immediate
|
||||
visible cue on what type of API we are calling into.
|
||||
*/
|
||||
|
||||
|
Reference in New Issue
Block a user