Commit 4b43c896 authored by marko's avatar marko

branches/zip: lock_move_reorganize_page(): Move the UNIV_DEBUG check for

orphaned locks outside the "for" loop.  This mistake was made in r1252.
parent 73ea67b0
......@@ -2690,22 +2690,22 @@ lock_move_reorganize_page(
page_cur_move_to_next(&cur1);
page_cur_move_to_next(&cur2);
}
#ifdef UNIV_DEBUG
{
ulint i = lock_rec_find_set_bit(lock);
/* Check that all locks were moved. */
if (UNIV_UNLIKELY(i != ULINT_UNDEFINED)) {
fprintf(stderr,
"lock_move_reorganize_page():"
" %lu not moved in %p\n",
(ulong) i, (void*) lock);
ut_error;
}
{
ulint i = lock_rec_find_set_bit(lock);
/* Check that all locks were moved. */
if (UNIV_UNLIKELY(i != ULINT_UNDEFINED)) {
fprintf(stderr,
"lock_move_reorganize_page():"
" %lu not moved in %p\n",
(ulong) i, (void*) lock);
ut_error;
}
#endif /* UNIV_DEBUG */
}
#endif /* UNIV_DEBUG */
}
lock_mutex_exit_kernel();
......
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