| 3720 | */ |
| 3721 | |
| 3722 | ulonglong handler::index_blocks(uint index, uint ranges, ha_rows rows) |
| 3723 | { |
| 3724 | if (!stats.block_size) |
| 3725 | return 0; // No disk storage |
| 3726 | size_t len= table->key_storage_length(index); |
| 3727 | ulonglong blocks= (rows * len / INDEX_BLOCK_FILL_FACTOR_DIV * |
| 3728 | INDEX_BLOCK_FILL_FACTOR_MUL) / stats.block_size + ranges; |
| 3729 | return blocks * stats.block_size / IO_SIZE; |
| 3730 | } |
| 3731 | |
| 3732 | |
| 3733 | /* |
no test coverage detected