From: <di...@us...> - 2014-09-01 08:29:08
|
Revision: 60019 http://sourceforge.net/p/firebird/code/60019 Author: dimitr Date: 2014-09-01 08:29:04 +0000 (Mon, 01 Sep 2014) Log Message: ----------- Count record reads performed by the IDX code. Modified Paths: -------------- firebird/trunk/src/jrd/vio.cpp Modified: firebird/trunk/src/jrd/vio.cpp =================================================================== --- firebird/trunk/src/jrd/vio.cpp 2014-08-30 01:29:50 UTC (rev 60018) +++ firebird/trunk/src/jrd/vio.cpp 2014-09-01 08:29:04 UTC (rev 60019) @@ -2090,6 +2090,8 @@ rec_tx_active = false; + bool counted = false; + while (true) { // If the record doesn't exist, no problem. @@ -2113,6 +2115,12 @@ 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. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |