Commit 80612d9f authored by unknown's avatar unknown

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
parent d563451b
...@@ -453,8 +453,6 @@ btr_search_info_update_slow( ...@@ -453,8 +453,6 @@ btr_search_info_update_slow(
} }
if (build_index) { if (build_index) {
ut_a(block->n_fields + block->n_bytes > 0);
btr_search_build_page_hash_index(block->frame, btr_search_build_page_hash_index(block->frame,
block->n_fields, block->n_fields,
block->n_bytes, block->n_bytes,
...@@ -1028,7 +1026,10 @@ btr_search_build_page_hash_index( ...@@ -1028,7 +1026,10 @@ btr_search_build_page_hash_index(
return; return;
} }
ut_a(n_fields + n_bytes > 0); if (n_fields + n_bytes == 0) {
return;
}
/* Calculate and cache fold values and corresponding records into /* Calculate and cache fold values and corresponding records into
an array for fast insertion to the hash index */ an array for fast insertion to the hash index */
......
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