diff options
Diffstat (limited to 'storage/innobase/row/row0ins.cc')
-rw-r--r-- | storage/innobase/row/row0ins.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/storage/innobase/row/row0ins.cc b/storage/innobase/row/row0ins.cc index b86f4fe34ce..4729431ce4e 100644 --- a/storage/innobase/row/row0ins.cc +++ b/storage/innobase/row/row0ins.cc @@ -2079,8 +2079,7 @@ row_ins_scan_sec_index_for_duplicate( rec_offs_init(offsets_); - ut_ad(s_latch == rw_lock_own_flagged( - &index->lock, RW_LOCK_FLAG_S | RW_LOCK_FLAG_SX)); + ut_ad(s_latch == (index->lock.have_u_not_x() || index->lock.have_s())); n_unique = dict_index_get_n_unique(index); |