summaryrefslogtreecommitdiff
path: root/innobase/btr
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2002-12-20 20:55:51 +0200
committerunknown <heikki@hundin.mysql.fi>2002-12-20 20:55:51 +0200
commit35f6e920c5a0a991bbaae0107405230985cb7c81 (patch)
treec084464fa031584e949deb250daff0febb6e4aed /innobase/btr
parent0c9a1ba5925aa5ee2232634e57a35507f841563e (diff)
downloadmariadb-git-35f6e920c5a0a991bbaae0107405230985cb7c81.tar.gz
btr0sea.c:
Remove an assertion which can fail in a race of 3 threads innobase/btr/btr0sea.c: Remove an assertion which can fail in a race of 3 threads
Diffstat (limited to 'innobase/btr')
-rw-r--r--innobase/btr/btr0sea.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/innobase/btr/btr0sea.c b/innobase/btr/btr0sea.c
index a798f28b4ab..421aafba1c5 100644
--- a/innobase/btr/btr0sea.c
+++ b/innobase/btr/btr0sea.c
@@ -453,8 +453,6 @@ btr_search_info_update_slow(
}
if (build_index) {
- ut_a(block->n_fields + block->n_bytes > 0);
-
btr_search_build_page_hash_index(block->frame,
block->n_fields,
block->n_bytes,
@@ -1028,7 +1026,10 @@ btr_search_build_page_hash_index(
return;
}
- ut_a(n_fields + n_bytes > 0);
+ if (n_fields + n_bytes == 0) {
+
+ return;
+ }
/* Calculate and cache fold values and corresponding records into
an array for fast insertion to the hash index */