mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 15:23:02 +01:00
Count record reads performed by the IDX code.
This commit is contained in:
parent
358d541ef8
commit
9defd49c6d
@ -2090,6 +2090,8 @@ bool VIO_get_current(thread_db* tdbb,
|
||||
|
||||
rec_tx_active = false;
|
||||
|
||||
bool counted = false;
|
||||
|
||||
while (true)
|
||||
{
|
||||
// If the record doesn't exist, no problem.
|
||||
@ -2113,6 +2115,12 @@ bool VIO_get_current(thread_db* tdbb,
|
||||
else
|
||||
VIO_data(tdbb, rpb, pool);
|
||||
|
||||
if (!counted)
|
||||
{
|
||||
tdbb->bumpRelStats(RuntimeStatistics::RECORD_IDX_READS, rpb->rpb_relation->rel_id);
|
||||
counted = true;
|
||||
}
|
||||
|
||||
// If we deleted the record, everything's fine, otherwise
|
||||
// the record must be considered real.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user