MDEV-12127 InnoDB: Assertion failure loop_count < 5 in file log0log.cc
As suggested in MySQL Bug#58536, increase the limit in this debug assertion in order to avoid false positives on heavily loaded systems.
This commit is contained in:
parent
b54566d73b
commit
fc673a2c12
@ -1460,17 +1460,7 @@ log_write_up_to(
|
||||
}
|
||||
|
||||
loop:
|
||||
#ifdef UNIV_DEBUG
|
||||
loop_count++;
|
||||
|
||||
ut_ad(loop_count < 5);
|
||||
|
||||
# if 0
|
||||
if (loop_count > 2) {
|
||||
fprintf(stderr, "Log loop count %lu\n", loop_count);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
ut_ad(++loop_count < 100);
|
||||
|
||||
mutex_enter(&(log_sys->mutex));
|
||||
ut_ad(!recv_no_log_write);
|
||||
|
@ -1570,17 +1570,7 @@ log_write_up_to(
|
||||
}
|
||||
|
||||
loop:
|
||||
#ifdef UNIV_DEBUG
|
||||
loop_count++;
|
||||
|
||||
ut_ad(loop_count < 5);
|
||||
|
||||
# if 0
|
||||
if (loop_count > 2) {
|
||||
fprintf(stderr, "Log loop count %lu\n", loop_count);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
ut_ad(++loop_count < 100);
|
||||
|
||||
mutex_enter(&(log_sys->mutex));
|
||||
ut_ad(!recv_no_log_write);
|
||||
|
Loading…
x
Reference in New Issue
Block a user