From 37062fc62faef6d69b0a3d2f9f1af727207ecce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Wed, 21 Apr 2010 12:16:11 +0300 Subject: [PATCH] rec_convert_dtuple_to_rec(): Correct the debug check. The "extern" accessor functions return zero or nonzero, not 0 or 1. --- storage/innodb_plugin/rem/rem0rec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/innodb_plugin/rem/rem0rec.c b/storage/innodb_plugin/rem/rem0rec.c index 5914c38be50..58bf37dc0f5 100644 --- a/storage/innodb_plugin/rem/rem0rec.c +++ b/storage/innodb_plugin/rem/rem0rec.c @@ -1225,8 +1225,8 @@ rec_convert_dtuple_to_rec( == rec_offs_n_fields(offsets)); for (i = 0; i < rec_offs_n_fields(offsets); i++) { - ut_ad(dfield_is_ext(dtuple_get_nth_field(dtuple, i)) - == rec_offs_nth_extern(offsets, i)); + ut_ad(!dfield_is_ext(dtuple_get_nth_field(dtuple, i)) + == !rec_offs_nth_extern(offsets, i)); } if (UNIV_LIKELY_NULL(heap)) {