~mysql/mysql-server/mysql-trunk

Viewing all changes in revision 3446.

  • Committer: Marko Mäkelä
  • Date: 2011-09-08 06:46:51 UTC
  • Revision ID: marko.makela@oracle.com-20110908064651-kjbucmoy91d4u9zu
Bug#12956276 POTENTIALLY BOGUS BRANCH PREDICTION HINTS

Remove possibly bogus branch prediction hints.

dict_index_is_univ(): A new test, for reducing UNIV_UNLIKELY clutter.
Returns TRUE for the insert buffer tree, FALSE for others.

dict_index_is_clust(), dict_index_is_unique(), dict_index_is_sec_or_ibuf():
Remove the branch prediction hints. Whether these conditions hold
most of the time depends on the workload (proportion of secondary indexes
and unique indexes.)

Remove hints claiming that records will not be delete-marked or
compressed or fields will not be NULL or externally stored most of the
time. This depends on the workload too.

Remove hints claiming that compressing a whole page will succeed.

buf_page_print(): Add UNIV_COLD attribute, meaning that any execution
path leading to this function execution should be unlikely. The
function is only invoked when some corruption is noticed.

rb:757 approved by Sunny Bains

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: