MySQL 8.3.0
Source Code Documentation
ut0test.cc File Reference
#include "ut0test.h"
#include "btr0load.h"
#include "btr0mtib.h"
#include "buf0flu.h"
#include "ddl0impl-builder.h"
#include "dict0dd.h"
#include "dict0dict.h"
#include "fil0fil.h"
#include "scope_guard.h"

Namespaces

namespace  ib
 

Macros

#define CALL_MEMBER_FN(object, ptrToMember)   ((object).*(ptrToMember))
 
#define DISPATCH_FUNCTION_DEF(func_)
 A macro to define a dispatch function or a command function. More...
 
#define DISPATCH(x)   m_dispatch[#x] = &Tester::x
 

Typedefs

typedef Tester::Ret_t ib::Ret_t
 

Functions

void ib::scan_page_type (space_id_t space_id, std::map< page_type_t, page_no_t > &result_map)
 
 ib::DISPATCH_FUNCTION_DEF (Tester::count_page_type)
 
 ib::DISPATCH_FUNCTION_DEF (Tester::count_used_and_free)
 
 ib::DISPATCH_FUNCTION_DEF (Tester::find_tablespace_physical_page_size)
 
 ib::DISPATCH_FUNCTION_DEF (Tester::make_ondisk_root_page_zeroes)
 
 ib::DISPATCH_FUNCTION_DEF (Tester::dblwr_force_crash)
 
 ib::DISPATCH_FUNCTION_DEF (Tester::make_page_dirty)
 
 ib::DISPATCH_FUNCTION_DEF (Tester::print_tree)
 
int ib::interpreter_run (const char *command) noexcept
 The main function to execute the commands in the tester. More...
 
void ib_interpreter_update (MYSQL_THD thd, SYS_VAR *var, void *var_ptr, const void *save)
 Update the innodb_interpreter_output system variable to let the user access the output generated by the tester. More...
 
int ib_interpreter_check (THD *thd, SYS_VAR *var, void *save, struct st_mysql_value *value)
 Check whether given command is valid for the InnoDB interpreter Refer to mysql_var_check_func() for more details. More...
 

Variables

thread_local Tester ib::tl_interpreter
 

Macro Definition Documentation

◆ CALL_MEMBER_FN

#define CALL_MEMBER_FN (   object,
  ptrToMember 
)    ((object).*(ptrToMember))

◆ DISPATCH

#define DISPATCH (   x)    m_dispatch[#x] = &Tester::x

◆ DISPATCH_FUNCTION_DEF

#define DISPATCH_FUNCTION_DEF (   func_)
Value:
/* @param[in] tokens the command line */ \
/* @return RET_PASS on success, or the error code. */ \
Ret_t func_(std::vector<std::string> &tokens) noexcept

A macro to define a dispatch function or a command function.

They all have the same signature.

Parameters
[in]func_the function that is being declared.

Function Documentation

◆ ib_interpreter_check()

int ib_interpreter_check ( THD thd,
SYS_VAR var,
void *  save,
struct st_mysql_value value 
)

Check whether given command is valid for the InnoDB interpreter Refer to mysql_var_check_func() for more details.

Parameters
[in]thdthread handle
[in]varpointer to system variable
[out]saveimmediate result for update function
[in]valueincoming string
Returns
0 for valid command.

◆ ib_interpreter_update()

void ib_interpreter_update ( MYSQL_THD  thd,
SYS_VAR var,
void *  var_ptr,
const void *  save 
)

Update the innodb_interpreter_output system variable to let the user access the output generated by the tester.

Refer to mysql_var_update_func() for details of the function signature.

Parameters
[in]thdthread handle
[in]vardynamic variable being altered
[in]var_ptrpointer to dynamic variable
[in]savepointer to temporary storage.