@@ -9820,17 +9820,17 @@ bool Fil_system::lookup_for_recovery(space_id_t space_id) {
9820
9820
because get_scanned_filename_by_space_id has not found it. But it
9821
9821
could not be a known space_id now, it would mean something went
9822
9822
quite wrong. */
9823
- ut_a (! recv_sys->missing_ids .contains (space_id));
9823
+ ut_a (recv_sys->missing_ids .count (space_id) == 0 );
9824
9824
9825
9825
/* Every time a space_id is marked deleted, the path
9826
9826
is also removed from m_dirs. */
9827
- ut_a (! recv_sys->deleted .contains (space_id));
9827
+ ut_a (recv_sys->deleted .count (space_id) == 0 );
9828
9828
} else {
9829
9829
/* Should belong to exactly one of `deleted` or `missing_ids`, as whenever
9830
9830
adding to deleted we remove from missing_ids, and
9831
9831
we add to missing_ids only if it's not in deleted. */
9832
- if (recv_sys->deleted .contains (space_id)) {
9833
- ut_a (! recv_sys->missing_ids .contains (space_id));
9832
+ if (recv_sys->deleted .count (space_id) != 0 ) {
9833
+ ut_a (recv_sys->missing_ids .count (space_id) == 0 );
9834
9834
} else {
9835
9835
recv_sys->missing_ids .insert (space_id);
9836
9836
}
@@ -9960,7 +9960,7 @@ Fil_state fil_tablespace_path_equals(space_id_t space_id,
9960
9960
never reach here with deleted space. We are running in context of threads of
9961
9961
DD validation. No one is modifying this data in parallel
9962
9962
so it is safe to read it without mutex protection. */
9963
- ut_a (! recv_sys->deleted .contains (space_id));
9963
+ ut_a (recv_sys->deleted .count (space_id) == 0 );
9964
9964
9965
9965
/* A file with this space_id was found during scanning.
9966
9966
Validate its location and check if it was moved from where
@@ -10119,7 +10119,7 @@ bool Fil_system::check_missing_tablespaces() {
10119
10119
an id into it, we remove it from recv_sys->missing_ids, and we insert into
10120
10120
recv_sys->missing_ids only if it's not in recv_sys->deleted.
10121
10121
No space id should be present in both containers. */
10122
- ut_a (! recv_sys->deleted .contains (space_id));
10122
+ ut_a (recv_sys->deleted .count (space_id) == 0 );
10123
10123
10124
10124
const auto result = get_scanned_filename_by_space_id (space_id).second ;
10125
10125
0 commit comments