mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Applying InnoDB snapshot
Detailed revision comments: r6594 | marko | 2010-02-08 12:55:04 +0200 (Mon, 08 Feb 2010) | 2 lines branches/zip: rec_get_nth_field_offs_old(): Replace if (!cond) ut_error; tests with ut_a(cond).
This commit is contained in:
parent
1a9d1bf94a
commit
051e2e4b21
1 changed files with 3 additions and 13 deletions
|
@ -695,19 +695,9 @@ rec_get_nth_field_offs_old(
|
|||
ulint os;
|
||||
ulint next_os;
|
||||
|
||||
ut_ad(rec && len);
|
||||
ut_ad(n < rec_get_n_fields_old(rec));
|
||||
|
||||
if (UNIV_UNLIKELY(n > REC_MAX_N_FIELDS)) {
|
||||
fprintf(stderr, "Error: trying to access field %lu in rec\n",
|
||||
(ulong) n);
|
||||
ut_error;
|
||||
}
|
||||
|
||||
if (UNIV_UNLIKELY(rec == NULL)) {
|
||||
fputs("Error: rec is NULL pointer\n", stderr);
|
||||
ut_error;
|
||||
}
|
||||
ut_ad(len);
|
||||
ut_a(rec);
|
||||
ut_a(n < rec_get_n_fields_old(rec));
|
||||
|
||||
if (rec_get_1byte_offs_flag(rec)) {
|
||||
os = rec_1_get_field_start_offs(rec, n);
|
||||
|
|
Loading…
Reference in a new issue