24#ifndef CONNECTION_CONTROL_PFS_TABLE_H
25#define CONNECTION_CONTROL_PFS_TABLE_H
51 throw std::bad_alloc();
54 T *temp =
static_cast<T *
>(
operator new(
n *
sizeof(
T)));
55 if (temp ==
nullptr)
throw std::bad_alloc();
Definition: connection_control_memory.h:41
Definition: connection_control_pfs_table.h:68
PSI_ulong m_failed_attempts
Definition: connection_control_pfs_table.h:74
Connection_control_pfs_table_data_row(const std::string &userhost, const PSI_ulong &failed_attempts)
Definition: connection_control_pfs_table.cc:36
std::string m_userhost
Definition: connection_control_pfs_table.h:73
Definition: connection_control_pfs_table.h:39
CustomAllocator(const CustomAllocator< U > &)
Definition: connection_control_pfs_table.h:46
T * allocate(std::size_t n)
Definition: connection_control_pfs_table.h:49
CustomAllocator()=default
T value_type
Definition: connection_control_pfs_table.h:41
void deallocate(T *ptr, std::size_t)
Definition: connection_control_pfs_table.h:60
#define T
Definition: jit_executor_value.cc:373
Definition: connection_control.h:70
bool unregister_pfs_table()
Definition: connection_control_pfs_table.cc:213
std::vector< Connection_control_pfs_table_data_row, CustomAllocator< Connection_control_pfs_table_data_row > > Connection_control_pfs_table_data
Definition: connection_control_pfs_table.h:79
bool register_pfs_table()
Definition: connection_control_pfs_table.cc:179
ValueType max(X &&first)
Definition: gtid.h:103
std::vector< T, ut::allocator< T > > vector
Specialization of vector which uses allocator.
Definition: ut0new.h:2876
Definition: pfs_plugin_table_service.h:118
int n
Definition: xcom_base.cc:509