Commit fd324dd3 authored by Marc Alff's avatar Marc Alff

Bug#37302 (missing DBUG_RETURN macro in function "find_key_block" (5.0 only))

Fixed missing DBUG_RETURN in the function find_key_block
parent 318d288a
...@@ -1382,7 +1382,7 @@ static BLOCK_LINK *find_key_block(KEY_CACHE *keycache, ...@@ -1382,7 +1382,7 @@ static BLOCK_LINK *find_key_block(KEY_CACHE *keycache,
/* We don't need the page in the cache: we are going to write on disk */ /* We don't need the page in the cache: we are going to write on disk */
hash_link->requests--; hash_link->requests--;
unlink_hash(keycache, hash_link); unlink_hash(keycache, hash_link);
return 0; DBUG_RETURN(0);
} }
if (!(block->status & BLOCK_IN_FLUSH)) if (!(block->status & BLOCK_IN_FLUSH))
{ {
...@@ -1399,7 +1399,7 @@ static BLOCK_LINK *find_key_block(KEY_CACHE *keycache, ...@@ -1399,7 +1399,7 @@ static BLOCK_LINK *find_key_block(KEY_CACHE *keycache,
flag (see the code below that handles reading requests). flag (see the code below that handles reading requests).
*/ */
free_block(keycache, block); free_block(keycache, block);
return 0; DBUG_RETURN(0);
} }
/* Wait intil the page is flushed on disk */ /* Wait intil the page is flushed on disk */
hash_link->requests--; hash_link->requests--;
...@@ -1429,7 +1429,7 @@ static BLOCK_LINK *find_key_block(KEY_CACHE *keycache, ...@@ -1429,7 +1429,7 @@ static BLOCK_LINK *find_key_block(KEY_CACHE *keycache,
/* Invalidate page in the block if it has not been done yet */ /* Invalidate page in the block if it has not been done yet */
if (block->status) if (block->status)
free_block(keycache, block); free_block(keycache, block);
return 0; DBUG_RETURN(0);
} }
if (page_status == PAGE_READ && if (page_status == PAGE_READ &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment