Skip to content

Commit 10d7466

Browse files
authored
modify the point when redistribution is called
1 parent 954049e commit 10d7466

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

mysql-5.6.26/storage/innobase/btr/btr0btr.cc

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3693,10 +3693,7 @@ btr_page_split_and_insert(
36933693
ut_ad(!page_is_empty(page));
36943694

36953695

3696-
3697-
/* lbh */
3698-
/* try to redistribute to neighbor page if possible before split */
3699-
3696+
// current evaluation is based on TPC-C benchmark
37003697
ibool tpcc_table = FALSE;
37013698

37023699
if(buf_block_get_space(btr_cur_get_block(cursor)) ==srv_ol_space_id
@@ -3713,21 +3710,21 @@ btr_page_split_and_insert(
37133710
return(rec);
37143711
}
37153712

3713+
/* lbh */
3714+
/* try to redistribute to neighbor page if possible before split */
3715+
//call data redistribution before split
37163716

37173717
if (tpcc_table && page_is_leaf(page)){
37183718
rec = btr_page_redistribute_before_split(flags, cursor, offsets, *heap, tuple, n_ext, mtr);
37193719

37203720
if(rec!=NULL){
3721-
//ib_logf(IB_LOG_LEVEL_INFO, "redistribute succeed");
3722-
return(rec);
3723-
3724-
}
3725-
else{
3726-
ib_logf(IB_LOG_LEVEL_INFO, "redistribute failed");
3721+
//redistribute succeed
3722+
return(rec);
3723+
}else{
3724+
//redistribute failed
37273725
}
37283726
}
37293727

3730-
37313728
/* end */
37323729

37333730
page_no = buf_block_get_page_no(block);

0 commit comments

Comments
 (0)