1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

branches/zip: Minor cleanup.

Replace btr_page_get_level() with page_is_leaf() where possible.

row_purge_upd_exist_or_extern(): Remove obsolete TODO comment.

dtuple_convert_big_rec(): Replace a flag variable with goto.
This commit is contained in:
marko
2006-04-04 10:42:05 +00:00
parent e14e718664
commit 7b57df2298
6 changed files with 20 additions and 25 deletions

View File

@@ -494,7 +494,6 @@ dtuple_convert_big_rec(
ulint n_fields;
ulint longest;
ulint longest_i = ULINT_MAX;
ibool is_externally_stored;
ulint i;
ulint j;
@@ -536,28 +535,26 @@ dtuple_convert_big_rec(
/* Skip over fields which already are externally
stored */
is_externally_stored = FALSE;
if (ext_vec) {
for (j = 0; j < n_ext_vec; j++) {
if (ext_vec[j] == i) {
is_externally_stored = TRUE;
goto is_externally_stored;
}
}
}
if (!is_externally_stored) {
dfield = dtuple_get_nth_field(entry, i);
dfield = dtuple_get_nth_field(entry, i);
if (dfield->len != UNIV_SQL_NULL
&& dfield->len > longest) {
if (dfield->len != UNIV_SQL_NULL &&
dfield->len > longest) {
longest = dfield->len;
longest = dfield->len;
longest_i = i;
}
longest_i = i;
}
is_externally_stored:
continue;
}
/* We do not store externally fields which are smaller than