File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2576,7 +2576,8 @@ fil_ibd_load(
2576
2576
2577
2577
/* Read and validate the first page of the tablespace.
2578
2578
Assign a tablespace name based on the tablespace type. */
2579
- switch (file.validate_for_recovery (&space_id)) {
2579
+ switch (file.validate_for_recovery (
2580
+ static_cast <uint32_t >(space_id))) {
2580
2581
os_offset_t minimum_size;
2581
2582
case DB_SUCCESS:
2582
2583
deferred_space = file.m_defer ;
Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ reopen it in write mode and ry to restore that page.
391
391
@retval DB_SUCCESS if tablespace is valid, DB_ERROR if not.
392
392
m_is_valid is also set true on success, else false. */
393
393
dberr_t
394
- Datafile::validate_for_recovery (ulint * space_id)
394
+ Datafile::validate_for_recovery (uint32_t space_id)
395
395
{
396
396
dberr_t err;
397
397
@@ -438,7 +438,7 @@ Datafile::validate_for_recovery(ulint *space_id)
438
438
if (empty_tablespace && space_id) {
439
439
/* Set space id to find out whether
440
440
the page exist in double write buffer */
441
- m_space_id = * space_id;
441
+ m_space_id = space_id;
442
442
}
443
443
444
444
if (restore_from_doublewrite ()) {
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ class Datafile {
210
210
@param space_id space id to validate for recovery
211
211
@retval DB_SUCCESS if tablespace is valid, DB_ERROR if not.
212
212
m_is_valid is also set true on success, else false. */
213
- dberr_t validate_for_recovery (ulint * space_id=nullptr )
213
+ dberr_t validate_for_recovery (uint32_t space_id=0 )
214
214
MY_ATTRIBUTE((warn_unused_result));
215
215
216
216
/* * Checks the consistency of the first page of a datafile when the
You can’t perform that action at this time.
0 commit comments