MCPcopy Create free account
hub / github.com/MariaDB/server / aggregate_da_errors

Function aggregate_da_errors

sql/log_event_server.cc:165–180  ·  view source on GitHub ↗

Accumulate a Diagnostics_area's errors and warnings into an output buffer @param errbuf The output buffer to write error messages @param errbuf_size The size of the output buffer @param da The Diagnostics_area to check for errors */

Source from the content-addressed store, hash-verified

163 @param da The Diagnostics_area to check for errors
164*/
165static void inline aggregate_da_errors(char *errbuf, size_t errbuf_size,
166 Diagnostics_area *da)
167{
168 const char *errbuf_end= errbuf + errbuf_size;
169 char *slider;
170 Diagnostics_area::Sql_condition_iterator it= da->sql_conditions();
171 const Sql_condition *err;
172 size_t len;
173 for (err= it++, slider= errbuf; err && slider < errbuf_end - 1;
174 slider += len, err= it++)
175 {
176 len= my_snprintf(slider, errbuf_end - slider,
177 " %s, Error_code: %d;", err->get_message_text(),
178 err->get_sql_errno());
179 }
180}
181
182
183/**

Callers 2

slave_rows_error_reportFunction · 0.85
do_record_gtidMethod · 0.85

Calls 4

my_snprintfFunction · 0.85
sql_conditionsMethod · 0.80
get_message_textMethod · 0.80
get_sql_errnoMethod · 0.80

Tested by

no test coverage detected