Commit 69df00b4 authored by unknown's avatar unknown

Merge work:/home/bk/mysql into mashka.mysql.fi:/home/my/mysql-3.23

parents 0105a8e9 9fb71fec
...@@ -548,13 +548,14 @@ int flush_key_blocks(File file, enum flush_type type) ...@@ -548,13 +548,14 @@ int flush_key_blocks(File file, enum flush_type type)
count++; count++;
} }
/* Only allocate a new buffer if its bigger than the one we have */ /* Only allocate a new buffer if its bigger than the one we have */
if (count <= FLUSH_CACHE || if (count > FLUSH_CACHE)
!(cache=(SEC_LINK**) my_malloc(sizeof(SEC_LINK*)*count,MYF(0)))) {
if (!(cache=(SEC_LINK**) my_malloc(sizeof(SEC_LINK*)*count,MYF(0))))
{ {
cache=cache_buff; /* Fall back to safe buffer */ cache=cache_buff; /* Fall back to safe buffer */
count=FLUSH_CACHE; count=FLUSH_CACHE;
} }
end=cache+count; }
} }
/* Go through the keys and write them to buffer to be flushed */ /* Go through the keys and write them to buffer to be flushed */
......
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