Skip to content

Commit 0f70991

Browse files
committed
MDEV-17306 rw_lock_x_lock_wait_func() double increments rw_x_spin_round_count
rw_lock_x_lock_wait_func(): remove duplicated logic added in incorrect merge Affected counters are affected by InnoDB monitor. But they aren't stable and thus can not be realiably tested.
1 parent f77071e commit 0f70991

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

storage/innobase/sync/sync0rw.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -495,14 +495,6 @@ rw_lock_x_lock_wait_func(
495495
lock->count_os_wait += static_cast<uint32_t>(count_os_wait);
496496
rw_lock_stats.rw_x_os_wait_count.add(count_os_wait);
497497
}
498-
499-
rw_lock_stats.rw_x_spin_round_count.add(n_spins);
500-
501-
if (count_os_wait > 0) {
502-
lock->count_os_wait +=
503-
static_cast<uint32_t>(count_os_wait);
504-
rw_lock_stats.rw_x_os_wait_count.add(count_os_wait);
505-
}
506498
}
507499

508500
#ifdef UNIV_DEBUG

0 commit comments

Comments
 (0)