Commit 23938ca3 authored by Marko Mäkelä's avatar Marko Mäkelä

Fix some more warnings

parent 7b45da52
......@@ -80,11 +80,11 @@ btr_search_sys_t* btr_search_sys;
/** If the number of records on the page divided by this parameter
would have been successfully accessed using a hash index, the index
is then built on the page, assuming the global limit has been reached */
#define BTR_SEARCH_PAGE_BUILD_LIMIT 16
#define BTR_SEARCH_PAGE_BUILD_LIMIT 16U
/** The global limit for consecutive potentially successful hash searches,
before hash index building is started */
#define BTR_SEARCH_BUILD_LIMIT 100
#define BTR_SEARCH_BUILD_LIMIT 100U
/** Compute a hash value of a record in a page.
@param[in] rec index record
......@@ -637,7 +637,7 @@ btr_search_update_block_hash_info(
if ((!block->index)
|| (block->n_hash_helps
> 2 * page_get_n_recs(block->frame))
> 2U * page_get_n_recs(block->frame))
|| (block->n_fields != block->curr_n_fields)
|| (block->n_bytes != block->curr_n_bytes)
|| (block->left_side != block->curr_left_side)) {
......
......@@ -2538,7 +2538,7 @@ row_log_table_apply_op(
rec_init_offsets_temp(mrec, dup->index, offsets,
dup->index->is_instant()
? static_cast<rec_comp_status_t>(
mrec[-extra_size])
*(mrec - extra_size))
: REC_STATUS_ORDINARY);
next_mrec = mrec + rec_offs_data_size(offsets);
......@@ -2658,7 +2658,7 @@ row_log_table_apply_op(
rec_init_offsets_temp(mrec, dup->index, offsets,
dup->index->is_instant()
? static_cast<rec_comp_status_t>(
mrec[-extra_size])
*(mrec - extra_size))
: REC_STATUS_ORDINARY);
next_mrec = mrec + rec_offs_data_size(offsets);
......@@ -2767,7 +2767,7 @@ row_log_table_apply_op(
rec_init_offsets_temp(mrec, dup->index, offsets,
dup->index->is_instant()
? static_cast<rec_comp_status_t>(
mrec[-extra_size])
*(mrec - extra_size))
: REC_STATUS_ORDINARY);
next_mrec = mrec + rec_offs_data_size(offsets);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment