| 1 | /* |
| 2 | Copyright (c) 2012,2013 Monty Program Ab |
| 3 | |
| 4 | This program is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by |
| 6 | the Free Software Foundation; version 2 of the License. |
| 7 | |
| 8 | This program is distributed in the hope that it will be useful, |
| 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | GNU General Public License for more details. |
| 12 | |
| 13 | You should have received a copy of the GNU General Public License |
| 14 | along with this program; if not, write to the Free Software |
| 15 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */ |
| 16 | #pragma once |
| 17 | |
| 18 | /* C++ standard header files */ |
| 19 | #include <string> |
| 20 | #include <vector> |
| 21 | |
| 22 | /* MySQL header files */ |
| 23 | #include "./sql_string.h"cxx . . $ `<file>/sql/sql_string.h`/ |
| 24 | |
| 25 | /* RocksDB includes */ |
| 26 | #include "rocksdb/table.h"cxx . . $ `<file>/storage/rocksdb/rocksdb/include/rocksdb/table.h`/ |
| 27 | #include "rocksdb/utilities/transaction_db.h"cxx . . $ `<file>/storage/rocksdb/rocksdb/include/rocksdb/utilities/transaction_db.h`/ |
| 28 | |
| 29 | namespace myrockscxx . . $ myrocks/ { |
| 30 | |
| 31 | enum RDB_IO_ERROR_TYPEcxx . . $ myrocks/RDB_IO_ERROR_TYPE# { |
| 32 | RDB_IO_ERROR_TX_COMMITcxx . . $ myrocks/RDB_IO_ERROR_TX_COMMIT., |
| 33 | RDB_IO_ERROR_DICT_COMMITcxx . . $ myrocks/RDB_IO_ERROR_DICT_COMMIT., |
| 34 | RDB_IO_ERROR_BG_THREADcxx . . $ myrocks/RDB_IO_ERROR_BG_THREAD., |
| 35 | RDB_IO_ERROR_GENERALcxx . . $ myrocks/RDB_IO_ERROR_GENERAL., |
| 36 | RDB_IO_ERROR_LASTcxx . . $ myrocks/RDB_IO_ERROR_LAST. |
| 37 | }; |
| 38 | |
| 39 | const char *get_rdb_io_error_stringcxx . . $ myrocks/get_rdb_io_error_string(d30004f65cb64952).(const RDB_IO_ERROR_TYPEcxx . . $ myrocks/RDB_IO_ERROR_TYPE# err_type); |
| 40 | |
| 41 | void rdb_handle_io_errorcxx . . $ myrocks/rdb_handle_io_error(2011176c8f331bb2).(const rocksdbcxx . . $ rocksdb/::Statuscxx . . $ rocksdb/Status# status, |
| 42 | const RDB_IO_ERROR_TYPEcxx . . $ myrocks/RDB_IO_ERROR_TYPE# err_type) |
| 43 | #if defined(__clang__cxx . . $ `<built-in>:3:9`!) |
| 44 | MY_ATTRIBUTEcxx . . $ `storage/rocksdb/rdb_mariadb_port.h:18:11`!((optnone)); |
| 45 | #else |
| 46 | MY_ATTRIBUTE((noinline,noclone)); |
| 47 | #endif |
| 48 | |
| 49 | int rdb_normalize_tablenamecxx . . $ myrocks/rdb_normalize_tablename(d41ec19f82163bef).(const stdcxx . . $ std/::stringcxx . . $ std/string# &tablename, stdcxx . . $ std/::stringcxx . . $ std/string# *str) |
| 50 | MY_ATTRIBUTEcxx . . $ `storage/rocksdb/rdb_mariadb_port.h:18:11`!((__nonnull__, __warn_unused_result__)); |
| 51 | |
| 52 | int rdb_split_normalized_tablenamecxx . . $ myrocks/rdb_split_normalized_tablename(cd9a3d09c67d9457).(const stdcxx . . $ std/::stringcxx . . $ std/string# &fullname, stdcxx . . $ std/::stringcxx . . $ std/string# *db, |
| 53 | stdcxx . . $ std/::stringcxx . . $ std/string# *table = nullptr, |
| 54 | stdcxx . . $ std/::stringcxx . . $ std/string# *partition = nullptr) |
| 55 | MY_ATTRIBUTEcxx . . $ `storage/rocksdb/rdb_mariadb_port.h:18:11`!((__warn_unused_result__)); |
| 56 | |
| 57 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> rdb_get_open_table_namescxx . . $ myrocks/rdb_get_open_table_names(c1a9bfb60daa162d).(void); |
| 58 | |
| 59 | class Rdb_perf_counterscxx . . $ myrocks/Rdb_perf_counters#; |
| 60 | int rdb_get_table_perf_counterscxx . . $ myrocks/rdb_get_table_perf_counters(9f62123e306220a).(const char *tablename, |
| 61 | Rdb_perf_counterscxx . . $ myrocks/Rdb_perf_counters# *counters) |
| 62 | MY_ATTRIBUTEcxx . . $ `storage/rocksdb/rdb_mariadb_port.h:18:11`!((__nonnull__(2))); |
| 63 | |
| 64 | void rdb_get_global_perf_counterscxx . . $ myrocks/rdb_get_global_perf_counters(11765b2eedabf718).(Rdb_perf_counterscxx . . $ myrocks/Rdb_perf_counters# *counters) |
| 65 | MY_ATTRIBUTEcxx . . $ `storage/rocksdb/rdb_mariadb_port.h:18:11`!((__nonnull__(1))); |
| 66 | |
| 67 | void rdb_queue_save_stats_requestcxx . . $ myrocks/rdb_queue_save_stats_request(49f6e7a06ebc5aa8).(); |
| 68 | |
| 69 | /* |
| 70 | Access to singleton objects. |
| 71 | */ |
| 72 | |
| 73 | rocksdbcxx . . $ rocksdb/::TransactionDBcxx . . $ rocksdb/TransactionDB# *rdb_get_rocksdb_dbcxx . . $ myrocks/rdb_get_rocksdb_db(73dbe581c79006b8).(); |
| 74 | |
| 75 | class Rdb_cf_managercxx . . $ myrocks/Rdb_cf_manager#; |
| 76 | Rdb_cf_managercxx . . $ myrocks/Rdb_cf_manager# &rdb_get_cf_managercxx . . $ myrocks/rdb_get_cf_manager(3a37ba5a9c41afc9).(); |
| 77 | |
| 78 | const rocksdbcxx . . $ rocksdb/::BlockBasedTableOptionscxx . . $ rocksdb/BlockBasedTableOptions# &rdb_get_table_optionscxx . . $ myrocks/rdb_get_table_options(8fd677ea07c3c2c8).(); |
| 79 | bool rdb_is_ttl_enabledcxx . . $ myrocks/rdb_is_ttl_enabled(c9857a73d68e59ba).(); |
| 80 | bool rdb_is_ttl_read_filtering_enabledcxx . . $ myrocks/rdb_is_ttl_read_filtering_enabled(c9857a73d68e59ba).(); |
| 81 | #ifndef DBUG_OFFcxx . . $ `<built-in>:476:9`! |
| 82 | int rdb_dbug_set_ttl_rec_ts(); |
| 83 | int rdb_dbug_set_ttl_snapshot_ts(); |
| 84 | int rdb_dbug_set_ttl_read_filter_ts(); |
| 85 | bool rdb_dbug_set_ttl_ignore_pk(); |
| 86 | #endif |
| 87 | |
| 88 | enum operation_typecxx . . $ myrocks/operation_type# : int; |
| 89 | void rdb_update_global_statscxx . . $ myrocks/rdb_update_global_stats(c58e1a9ded3984e5).(const operation_typecxx . . $ myrocks/operation_type# &type, uint count, |
| 90 | bool is_system_table = false); |
| 91 | |
| 92 | class Rdb_dict_managercxx . . $ myrocks/Rdb_dict_manager#; |
| 93 | Rdb_dict_managercxx . . $ myrocks/Rdb_dict_manager# *rdb_get_dict_managercxx . . $ myrocks/rdb_get_dict_manager(5d2dbbf974bc1284).(void) |
| 94 | MY_ATTRIBUTEcxx . . $ `storage/rocksdb/rdb_mariadb_port.h:18:11`!((__warn_unused_result__)); |
| 95 | |
| 96 | class Rdb_ddl_managercxx . . $ myrocks/Rdb_ddl_manager#; |
| 97 | Rdb_ddl_managercxx . . $ myrocks/Rdb_ddl_manager# *rdb_get_ddl_managercxx . . $ myrocks/rdb_get_ddl_manager(fe6556c9109fe2fe).(void) |
| 98 | MY_ATTRIBUTEcxx . . $ `storage/rocksdb/rdb_mariadb_port.h:18:11`!((__warn_unused_result__)); |
| 99 | |
| 100 | class Rdb_binlog_managercxx . . $ myrocks/Rdb_binlog_manager#; |
| 101 | Rdb_binlog_managercxx . . $ myrocks/Rdb_binlog_manager# *rdb_get_binlog_managercxx . . $ myrocks/rdb_get_binlog_manager(49e372fc5301b4c9).(void) |
| 102 | MY_ATTRIBUTEcxx . . $ `storage/rocksdb/rdb_mariadb_port.h:18:11`!((__warn_unused_result__)); |
| 103 | } // namespace myrocks |