Skip to content

Commit 57d833f

Browse files
author
Yasufumi Kinoshita
committed
Bug#19420253 : ASSERT \'S_LATCH == RW_LOCK_OWN(&INDEX->LOCK, RW_LOCK_S)\' AT ROW0INS.CC
The assertion code was insufficient. Adjusted also for SX lock, not only for S lock. Approved by Jimmy by IM
1 parent d8ba99c commit 57d833f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storage/innobase/row/row0ins.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,8 @@ row_ins_scan_sec_index_for_duplicate(
19151915

19161916

19171917
#ifdef UNIV_SYNC_DEBUG
1918-
ut_ad(s_latch == rw_lock_own(&index->lock, RW_LOCK_S));
1918+
ut_ad(s_latch == rw_lock_own_flagged(
1919+
&index->lock, RW_LOCK_FLAG_S | RW_LOCK_FLAG_SX));
19191920
#endif /* UNIV_SYNC_DEBUG */
19201921

19211922
n_unique = dict_index_get_n_unique(index);

0 commit comments

Comments
 (0)