mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
avoid searching std::map twice in innochecksum
This commit is contained in:
parent
1918bdf32c
commit
7da1cfb07a
1 changed files with 1 additions and 6 deletions
|
@ -912,12 +912,7 @@ parse_page(
|
|||
}
|
||||
/* update per-index statistics */
|
||||
{
|
||||
if (index_ids.count(id) == 0) {
|
||||
index_ids[id] = per_index_stats();
|
||||
}
|
||||
std::map<unsigned long long, per_index_stats>::iterator it;
|
||||
it = index_ids.find(id);
|
||||
per_index_stats &index = (it->second);
|
||||
per_index_stats &index = index_ids[id];
|
||||
if (page_is_free(xdes, page_size, page_no)) {
|
||||
index.free_pages++;
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue