mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 18:25:30 +02:00
Fixed typo in last changeset
mysys/mf_keycache.c: Fixed typo. sql/records.cc: Cleanup
This commit is contained in:
parent
f2a42796d8
commit
7fbb09f4bb
2 changed files with 7 additions and 7 deletions
|
|
@ -169,7 +169,7 @@ void end_key_cache(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
key_cache_inited=0;
|
key_cache_inited=0;
|
||||||
_my_hash_blocks=my_blocks_used=0;
|
_my_hash_blocks=_my_blocks_used=0;
|
||||||
DBUG_PRINT("status",
|
DBUG_PRINT("status",
|
||||||
("used: %d changed: %d w_requests: %ld writes: %ld r_requests: %ld reads: %ld",
|
("used: %d changed: %d w_requests: %ld writes: %ld r_requests: %ld reads: %ld",
|
||||||
_my_blocks_used,_my_blocks_changed,_my_cache_w_requests,
|
_my_blocks_used,_my_blocks_changed,_my_cache_w_requests,
|
||||||
|
|
|
||||||
|
|
@ -51,12 +51,7 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table,
|
||||||
tempfile= &select->file;
|
tempfile= &select->file;
|
||||||
else
|
else
|
||||||
tempfile= table->io_cache;
|
tempfile= table->io_cache;
|
||||||
if (select && select->quick && (! tempfile || !tempfile->buffer))
|
if (tempfile && my_b_inited(tempfile)) // Test if ref-records was used
|
||||||
{
|
|
||||||
DBUG_PRINT("info",("using rr_quick"));
|
|
||||||
info->read_record=rr_quick;
|
|
||||||
}
|
|
||||||
else if (tempfile && my_b_inited(tempfile)) // Test if ref-records was used
|
|
||||||
{
|
{
|
||||||
DBUG_PRINT("info",("using rr_from_tempfile"));
|
DBUG_PRINT("info",("using rr_from_tempfile"));
|
||||||
info->read_record=rr_from_tempfile;
|
info->read_record=rr_from_tempfile;
|
||||||
|
|
@ -84,6 +79,11 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (select && select->quick)
|
||||||
|
{
|
||||||
|
DBUG_PRINT("info",("using rr_quick"));
|
||||||
|
info->read_record=rr_quick;
|
||||||
|
}
|
||||||
else if (table->record_pointers)
|
else if (table->record_pointers)
|
||||||
{
|
{
|
||||||
table->file->rnd_init(0);
|
table->file->rnd_init(0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue