Register requests for a block. SYNOPSIS reg_requests() keycache Pointer to a key cache data structure. block Pointer to the block to register a request on. count Number of requests. Always 1. NOTE The first request unlinks the block from the LRU ring. This means that it is protected against eveiction. RETURN void */
| 1284 | void |
| 1285 | */ |
| 1286 | static void reg_requests(KEY_CACHE *keycache, BLOCK_LINK *block, int count) |
| 1287 | { |
| 1288 | DBUG_ASSERT(block->status & BLOCK_IN_USE); |
| 1289 | DBUG_ASSERT(block->hash_link); |
| 1290 | |
| 1291 | if (!block->requests) |
| 1292 | unlink_block(keycache, block); |
| 1293 | block->requests+=count; |
| 1294 | } |
| 1295 | |
| 1296 | |
| 1297 | /* |
no test coverage detected