File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1746,17 +1746,17 @@ struct dict_table_t {
1746
1746
void inc_fk_checks ()
1747
1747
{
1748
1748
#ifdef UNIV_DEBUG
1749
- lint fk_checks= (lint)
1749
+ int32_t fk_checks=
1750
1750
#endif
1751
- my_atomic_addlint (& n_foreign_key_checks_running, 1 ) ;
1751
+ n_foreign_key_checks_running++ ;
1752
1752
ut_ad (fk_checks >= 0 );
1753
1753
}
1754
1754
void dec_fk_checks ()
1755
1755
{
1756
1756
#ifdef UNIV_DEBUG
1757
- lint fk_checks= (lint)
1757
+ int32_t fk_checks=
1758
1758
#endif
1759
- my_atomic_addlint (& n_foreign_key_checks_running, ulint (- 1 )) ;
1759
+ n_foreign_key_checks_running-- ;
1760
1760
ut_ad (fk_checks > 0 );
1761
1761
}
1762
1762
@@ -1935,7 +1935,7 @@ struct dict_table_t {
1935
1935
/* * Count of how many foreign key check operations are currently being
1936
1936
performed on the table. We cannot drop the table while there are
1937
1937
foreign key checks running on it. */
1938
- ulint n_foreign_key_checks_running;
1938
+ Atomic_counter< int32_t > n_foreign_key_checks_running;
1939
1939
1940
1940
/* * Transactions whose view low limit is greater than this number are
1941
1941
not allowed to store to the MySQL query cache or retrieve from it.
You can’t perform that action at this time.
0 commit comments