Skip to content

Commit de9963b

Browse files
author
Jan Lindström
committed
After reivew fixes.
1 parent 41cd80f commit de9963b

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

storage/innobase/buf/buf0buf.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4513,7 +4513,7 @@ buf_page_check_corrupt(
45134513
ib_logf(IB_LOG_LEVEL_ERROR,
45144514
"%s: Block in space_id " ULINTPF " in file %s corrupted.",
45154515
page_type == FIL_PAGE_PAGE_COMPRESSED_ENCRYPTED ? "Maybe corruption" : "Corruption",
4516-
space_id, space ? space->name : "NULL");
4516+
space_id, space->name ? space->name : "NULL");
45174517
ib_logf(IB_LOG_LEVEL_ERROR,
45184518
"Based on page type %s (" ULINTPF ")",
45194519
fil_get_page_type_name(page_type), page_type);
@@ -4523,7 +4523,7 @@ buf_page_check_corrupt(
45234523

45244524
ib_logf(IB_LOG_LEVEL_ERROR,
45254525
"Block in space_id " ULINTPF " in file %s encrypted.",
4526-
space_id, space ? space->name : "NULL");
4526+
space_id, space->name ? space->name : "NULL");
45274527
ib_logf(IB_LOG_LEVEL_ERROR,
45284528
"However key management plugin or used key_version %u is not found or"
45294529
" used encryption algorithm or method does not match.",
@@ -4669,7 +4669,7 @@ buf_page_io_complete(
46694669
ib_logf(IB_LOG_LEVEL_ERROR,
46704670
"Space %u file %s read of page %u.",
46714671
bpage->space,
4672-
space ? space->name : "NULL",
4672+
space->name ? space->name : "NULL",
46734673
bpage->offset);
46744674
ib_logf(IB_LOG_LEVEL_ERROR,
46754675
"You may have to recover"
@@ -4894,7 +4894,7 @@ buf_all_freed_instance(
48944894
ib_logf(IB_LOG_LEVEL_ERROR,
48954895
"Page space_id %u name %s.",
48964896
block->page.space,
4897-
(space && space->name) ? space->name : "NULL");
4897+
space->name ? space->name : "NULL");
48984898
ut_error;
48994899
}
49004900
}

storage/innobase/buf/buf0dblwr.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,6 @@ buf_dblwr_process()
489489

490490
for (std::list<byte*>::iterator i = recv_dblwr.pages.begin();
491491
i != recv_dblwr.pages.end(); ++i, ++page_no_dblwr ) {
492-
fil_space_t* space=NULL;
493492
page = *i;
494493
page_no = mach_read_from_4(page + FIL_PAGE_OFFSET);
495494
space_id = mach_read_from_4(page + FIL_PAGE_SPACE_ID);
@@ -509,7 +508,7 @@ buf_dblwr_process()
509508
continue;
510509
}
511510

512-
space = fil_space_found_by_id(space_id);
511+
fil_space_t* space = fil_space_found_by_id(space_id);
513512
ulint zip_size = fil_space_get_zip_size(space_id);
514513
ut_ad(!buf_page_is_zeroes(page, zip_size));
515514

storage/xtradb/buf/buf0buf.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4614,7 +4614,7 @@ buf_page_check_corrupt(
46144614
ib_logf(IB_LOG_LEVEL_ERROR,
46154615
"%s: Block in space_id " ULINTPF " in file %s corrupted.",
46164616
page_type == FIL_PAGE_PAGE_COMPRESSED_ENCRYPTED ? "Maybe corruption" : "Corruption",
4617-
space_id, space ? space->name : "NULL");
4617+
space_id, space->name ? space->name : "NULL");
46184618
ib_logf(IB_LOG_LEVEL_ERROR,
46194619
"Based on page type %s (" ULINTPF ")",
46204620
fil_get_page_type_name(page_type), page_type);
@@ -4624,7 +4624,7 @@ buf_page_check_corrupt(
46244624

46254625
ib_logf(IB_LOG_LEVEL_ERROR,
46264626
"Block in space_id " ULINTPF " in file %s encrypted.",
4627-
space_id, space ? space->name : "NULL");
4627+
space_id, space->name ? space->name : "NULL");
46284628
ib_logf(IB_LOG_LEVEL_ERROR,
46294629
"However key management plugin or used key_version %u is not found or"
46304630
" used encryption algorithm or method does not match.",
@@ -4775,7 +4775,7 @@ buf_page_io_complete(
47754775
ib_logf(IB_LOG_LEVEL_ERROR,
47764776
"Space %u file %s read of page %u.",
47774777
bpage->space,
4778-
space ? space->name : "NULL",
4778+
space->name ? space->name : "NULL",
47794779
bpage->offset);
47804780
ib_logf(IB_LOG_LEVEL_ERROR,
47814781
"You may have to recover"
@@ -5040,7 +5040,7 @@ buf_all_freed_instance(
50405040
ib_logf(IB_LOG_LEVEL_ERROR,
50415041
"Page space_id %u name %s.",
50425042
block->page.space,
5043-
(space && space->name) ? space->name : "NULL");
5043+
space->name ? space->name : "NULL");
50445044
ut_error;
50455045
}
50465046
}

storage/xtradb/buf/buf0dblwr.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,6 @@ buf_dblwr_process()
489489

490490
for (std::list<byte*>::iterator i = recv_dblwr.pages.begin();
491491
i != recv_dblwr.pages.end(); ++i, ++page_no_dblwr ) {
492-
fil_space_t* space=NULL;
493492
page = *i;
494493
page_no = mach_read_from_4(page + FIL_PAGE_OFFSET);
495494
space_id = mach_read_from_4(page + FIL_PAGE_SPACE_ID);
@@ -509,7 +508,7 @@ buf_dblwr_process()
509508
continue;
510509
}
511510

512-
space = fil_space_found_by_id(space_id);
511+
fil_space_t* space = fil_space_found_by_id(space_id);
513512
ulint zip_size = fil_space_get_zip_size(space_id);
514513
ut_ad(!buf_page_is_zeroes(page, zip_size));
515514

0 commit comments

Comments
 (0)