24#ifndef RPL_INFO_FILE_H
25#define RPL_INFO_FILE_H
101 static bool do_count_info(
const int nparam,
const char *param_pattern_fname,
102 bool indexed,
MY_BITMAP const *nullable_bitmap,
104 static int do_reset_info(
int const nparam,
const char *param_pattern_fname,
109 bool do_set_info(
const int pos,
const char *value)
override;
111 const size_t size)
override;
112 bool do_set_info(
const int pos,
const int value)
override;
113 bool do_set_info(
const int pos,
const ulong value)
override;
114 bool do_set_info(
const int pos,
const float value)
override;
124 bool do_set_info(
const int pos,
const std::nullptr_t value)
override;
134 bool do_set_info(
const int pos,
const std::nullptr_t value,
135 const size_t size)
override;
152 const int pos,
char *value,
const size_t size,
153 const char *default_value)
override;
155 const int pos,
uchar *value,
const size_t size,
156 const uchar *default_value)
override;
158 const int pos,
int *value,
const int default_value)
override;
160 const int pos, ulong *value,
const ulong default_value)
override;
162 const int pos,
float *value,
const float default_value)
override;
172 Rpl_info_file(
int const nparam,
const char *param_pattern_fname,
Definition: rpl_info_factory.h:44
Defines a file handler.
Definition: rpl_info_file.h:40
uint do_get_rpl_info_type() override
Definition: rpl_info_file.cc:468
int do_prepare_info_for_read() override
Definition: rpl_info_file.cc:144
int do_clean_info() override
Definition: rpl_info_file.cc:286
static int do_reset_info(int const nparam, const char *param_pattern_fname, bool name_indexed, MY_BITMAP const *nullable_bitmap)
Definition: rpl_info_file.cc:294
File info_fd
Definition: rpl_info_file.h:67
bool do_set_info(const int pos, const char *value) override
Definition: rpl_info_file.cc:327
int do_flush_info(const bool force) override
Definition: rpl_info_file.cc:249
int do_init_info() override
Definition: rpl_info_file.cc:89
bool do_update_is_transactional() override
Definition: rpl_info_file.cc:466
static bool do_count_info(const int nparam, const char *param_pattern_fname, bool indexed, MY_BITMAP const *nullable_bitmap, uint *counter)
Returns the number of files that corresponds to param_info_fname.
Definition: rpl_info_file.cc:215
int do_remove_info() override
Definition: rpl_info_file.cc:273
char * do_get_description_info() override
Definition: rpl_info_file.cc:462
bool do_is_transactional() override
Definition: rpl_info_file.cc:464
Rpl_info_file(const Rpl_info_file &info)
int do_prepare_info_for_write() override
Definition: rpl_info_file.cc:151
void do_end_info() override
Definition: rpl_info_file.cc:263
Rpl_info_file & operator=(const Rpl_info_file &info)
char info_fname[FN_REFLEN+128]
This uniquely identifies a file.
Definition: rpl_info_file.h:55
Rpl_info_handler::enum_field_get_status do_get_info(const int pos, char *value, const size_t size, const char *default_value) override
Definition: rpl_info_file.cc:405
char pattern_fname[FN_REFLEN+128]
This is used to identified a name's pattern.
Definition: rpl_info_file.h:61
bool name_indexed
Definition: rpl_info_file.h:75
enum_return_check do_check_info() override
Definition: rpl_info_file.cc:191
~Rpl_info_file() override
Definition: rpl_info_file.cc:72
Rpl_info_handler::enum_field_get_status check_for_error(int pos, long n_read_bytes)
Checks if the value returned from the read function is an actual error or just the side-effect of a n...
Definition: rpl_info_file.cc:396
IO_CACHE info_file
Definition: rpl_info_file.h:70
Rpl_info_file(int const nparam, const char *param_pattern_fname, const char *param_info_fname, bool name_indexed, MY_BITMAP const *nullable_bitmap)
Definition: rpl_info_file.cc:60
Definition: rpl_info_handler.h:58
enum_field_get_status
Definition: rpl_info_handler.h:66
Definition: dynamic_ids.h:33
Some integer typedefs for easier portability.
unsigned char uchar
Definition: my_inttypes.h:52
Common #defines and includes for file and socket I/O.
#define FN_REFLEN
Definition: my_io.h:83
int File
Definition: my_io_bits.h:51
Common header for many mysys elements.
uint counter
Definition: mysqlimport.cc:54
enum_return_check
Definition: rpl_info_handler.h:51
Definition: my_bitmap.h:43
unsigned int uint
Definition: uca9-dump.cc:75