Skip to content
Permalink
Browse files
MDEV-21225: Fix warnings
Datafile::find_space_id(): Remove an unused variable

buf_chunk_init(): warning C4319:  '~': zero extending 'ulong' to 'ulint'
of greater size
  • Loading branch information
dr-m committed Dec 5, 2019
1 parent 2c7b621 commit 46fc3bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
@@ -1605,7 +1605,7 @@ buf_chunk_init(

frame = reinterpret_cast<byte*>((reinterpret_cast<ulint>(chunk->mem)
+ srv_page_size - 1)
& ~(srv_page_size - 1));
& ~ulint{srv_page_size - 1});
chunk->size = (chunk->mem_pfx.m_size >> srv_page_size_shift)
- (frame != chunk->mem);

@@ -673,9 +673,8 @@ Datafile::find_space_id()
}

for (ulint j = 0; j < page_count; ++j) {
if (dberr_t err = os_file_read(
IORequestRead, m_handle, page,
j * page_size, page_size)) {
if (os_file_read(IORequestRead, m_handle, page,
j * page_size, page_size)) {
ib::info()
<< "READ FAIL: page_no:" << j;
continue;

0 comments on commit 46fc3bd

Please sign in to comment.