WL#5692: Enable Disk-Sweep Multi-Range Read optimizer feature

Affects: Server-5.6   —   Status: Complete

The optimizer feature named Disk-Sweep Multi-Range Read (DS-MRR or just MRR) has
been implemented as part of WL#2474/WL#2475. The feature is currently in our
source code but disabled when doing a normal build. In order to enable it you
have to include a special pre-processor define either by including it on the
command line or by editing the source.

The purpose of this worklog is to:

1. enable Disk-Sweep Multi-Range Read in the server so that it can be used by
   the MySQL optimizer

2. enable the mrr switch to be configurable via the optimzer_switch
configuration variable. The default value for mrr will be on.

3. enable the mrr_cost_based switch to be configurable via the optimizer_switch
configuration variable. The default value for mrr_cost_based will be on.

After this change the DS-MRR optimzier feature will be available for the
optimizer to use for data stored in MyISAM and InnoDB. The use of it will be
configurable by the user.