Commit df49c4bf authored by osku's avatar osku

Split long lines with [] operators better.

parent c3459220
...@@ -3854,8 +3854,8 @@ dict_update_statistics_low( ...@@ -3854,8 +3854,8 @@ dict_update_statistics_low(
index = dict_table_get_first_index(table); index = dict_table_get_first_index(table);
table->stat_n_rows = index->stat_n_diff_key_vals table->stat_n_rows = index->stat_n_diff_key_vals[
[dict_index_get_n_unique(index)]; dict_index_get_n_unique(index)];
table->stat_clustered_index_size = index->stat_index_size; table->stat_clustered_index_size = index->stat_index_size;
...@@ -4053,8 +4053,8 @@ dict_index_print_low( ...@@ -4053,8 +4053,8 @@ dict_index_print_low(
#endif /* UNIV_SYNC_DEBUG */ #endif /* UNIV_SYNC_DEBUG */
if (index->n_user_defined_cols > 0) { if (index->n_user_defined_cols > 0) {
n_vals = index->stat_n_diff_key_vals n_vals = index->stat_n_diff_key_vals[
[index->n_user_defined_cols]; index->n_user_defined_cols];
} else { } else {
n_vals = index->stat_n_diff_key_vals[1]; n_vals = index->stat_n_diff_key_vals[1];
} }
...@@ -4268,9 +4268,9 @@ dict_print_info_on_foreign_keys( ...@@ -4268,9 +4268,9 @@ dict_print_info_on_foreign_keys(
if (i) { if (i) {
putc(' ', file); putc(' ', file);
} }
ut_print_name(file, trx, FALSE, ut_print_name(
foreign->referenced_col_names file, trx, FALSE,
[i]); foreign->referenced_col_names[i]);
} }
putc(')', file); putc(')', file);
......
...@@ -1117,8 +1117,8 @@ fsp_try_extend_data_file( ...@@ -1117,8 +1117,8 @@ fsp_try_extend_data_file(
fprintf(stderr, fprintf(stderr,
"InnoDB: Error: Last data file size is %lu," "InnoDB: Error: Last data file size is %lu,"
" max size allowed %lu\n", " max size allowed %lu\n",
(ulong) srv_data_file_sizes (ulong) srv_data_file_sizes[
[srv_n_data_files - 1], srv_n_data_files - 1],
(ulong) srv_last_file_size_max); (ulong) srv_last_file_size_max);
} }
......
...@@ -3014,8 +3014,8 @@ row_sel_pop_cached_row_for_mysql( ...@@ -3014,8 +3014,8 @@ row_sel_pop_cached_row_for_mysql(
if (UNIV_UNLIKELY(prebuilt->keep_other_fields_on_keyread)) { if (UNIV_UNLIKELY(prebuilt->keep_other_fields_on_keyread)) {
/* Copy cache record field by field, don't touch fields that /* Copy cache record field by field, don't touch fields that
are not covered by current key */ are not covered by current key */
cached_rec = prebuilt->fetch_cache cached_rec = prebuilt->fetch_cache[
[prebuilt->fetch_cache_first]; prebuilt->fetch_cache_first];
for (i = 0; i < prebuilt->n_template; i++) { for (i = 0; i < prebuilt->n_template; i++) {
templ = prebuilt->mysql_template + i; templ = prebuilt->mysql_template + i;
...@@ -3027,8 +3027,7 @@ row_sel_pop_cached_row_for_mysql( ...@@ -3027,8 +3027,7 @@ row_sel_pop_cached_row_for_mysql(
if (templ->mysql_null_bit_mask) { if (templ->mysql_null_bit_mask) {
buf[templ->mysql_null_byte_offset] buf[templ->mysql_null_byte_offset]
^= (buf[templ->mysql_null_byte_offset] ^= (buf[templ->mysql_null_byte_offset]
^ cached_rec ^ cached_rec[templ->mysql_null_byte_offset])
[templ->mysql_null_byte_offset])
& (byte)templ->mysql_null_bit_mask; & (byte)templ->mysql_null_bit_mask;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment