@@ -1422,36 +1422,36 @@ void Monitoring::putStatistics(SnapshotData::DumpRecord& record, const RuntimeSt
14221422 record.reset (rel_mon_io_stats);
14231423 record.storeGlobalId (f_mon_io_stat_id, id);
14241424 record.storeInteger (f_mon_io_stat_group, stat_group);
1425- record.storeInteger (f_mon_io_page_reads, statistics. getValue (RuntimeStatistics:: PAGE_READS ) );
1426- record.storeInteger (f_mon_io_page_writes, statistics. getValue (RuntimeStatistics:: PAGE_WRITES ) );
1427- record.storeInteger (f_mon_io_page_fetches, statistics. getValue (RuntimeStatistics:: PAGE_FETCHES ) );
1428- record.storeInteger (f_mon_io_page_marks, statistics. getValue (RuntimeStatistics:: PAGE_MARKS ) );
1425+ record.storeInteger (f_mon_io_page_reads, statistics[PageStatType:: READS ] );
1426+ record.storeInteger (f_mon_io_page_writes, statistics[PageStatType:: WRITES ] );
1427+ record.storeInteger (f_mon_io_page_fetches, statistics[PageStatType:: FETCHES ] );
1428+ record.storeInteger (f_mon_io_page_marks, statistics[PageStatType:: MARKS ] );
14291429 record.write ();
14301430
14311431 // logical I/O statistics (global)
14321432 record.reset (rel_mon_rec_stats);
14331433 record.storeGlobalId (f_mon_rec_stat_id, id);
14341434 record.storeInteger (f_mon_rec_stat_group, stat_group);
1435- record.storeInteger (f_mon_rec_seq_reads, statistics. getValue (RuntimeStatistics:: RECORD_SEQ_READS ) );
1436- record.storeInteger (f_mon_rec_idx_reads, statistics. getValue (RuntimeStatistics:: RECORD_IDX_READS ) );
1437- record.storeInteger (f_mon_rec_inserts, statistics. getValue (RuntimeStatistics:: RECORD_INSERTS ) );
1438- record.storeInteger (f_mon_rec_updates, statistics. getValue (RuntimeStatistics:: RECORD_UPDATES ) );
1439- record.storeInteger (f_mon_rec_deletes, statistics. getValue (RuntimeStatistics:: RECORD_DELETES ) );
1440- record.storeInteger (f_mon_rec_backouts, statistics. getValue (RuntimeStatistics:: RECORD_BACKOUTS ) );
1441- record.storeInteger (f_mon_rec_purges, statistics. getValue (RuntimeStatistics:: RECORD_PURGES ) );
1442- record.storeInteger (f_mon_rec_expunges, statistics. getValue (RuntimeStatistics:: RECORD_EXPUNGES ) );
1443- record.storeInteger (f_mon_rec_locks, statistics. getValue (RuntimeStatistics:: RECORD_LOCKS ) );
1444- record.storeInteger (f_mon_rec_waits, statistics. getValue (RuntimeStatistics:: RECORD_WAITS ) );
1445- record.storeInteger (f_mon_rec_conflicts, statistics. getValue (RuntimeStatistics:: RECORD_CONFLICTS ) );
1446- record.storeInteger (f_mon_rec_bkver_reads, statistics. getValue (RuntimeStatistics:: RECORD_BACKVERSION_READS ) );
1447- record.storeInteger (f_mon_rec_frg_reads, statistics. getValue (RuntimeStatistics:: RECORD_FRAGMENT_READS ) );
1448- record.storeInteger (f_mon_rec_rpt_reads, statistics. getValue (RuntimeStatistics:: RECORD_RPT_READS ) );
1449- record.storeInteger (f_mon_rec_imgc, statistics. getValue (RuntimeStatistics:: RECORD_IMGC ) );
1435+ record.storeInteger (f_mon_rec_seq_reads, statistics[RecordStatType:: SEQ_READS ] );
1436+ record.storeInteger (f_mon_rec_idx_reads, statistics[RecordStatType:: IDX_READS ] );
1437+ record.storeInteger (f_mon_rec_inserts, statistics[RecordStatType:: INSERTS ] );
1438+ record.storeInteger (f_mon_rec_updates, statistics[RecordStatType:: UPDATES ] );
1439+ record.storeInteger (f_mon_rec_deletes, statistics[RecordStatType:: DELETES ] );
1440+ record.storeInteger (f_mon_rec_backouts, statistics[RecordStatType:: BACKOUTS ] );
1441+ record.storeInteger (f_mon_rec_purges, statistics[RecordStatType:: PURGES ] );
1442+ record.storeInteger (f_mon_rec_expunges, statistics[RecordStatType:: EXPUNGES ] );
1443+ record.storeInteger (f_mon_rec_locks, statistics[RecordStatType:: LOCKS ] );
1444+ record.storeInteger (f_mon_rec_waits, statistics[RecordStatType:: WAITS ] );
1445+ record.storeInteger (f_mon_rec_conflicts, statistics[RecordStatType:: CONFLICTS ] );
1446+ record.storeInteger (f_mon_rec_bkver_reads, statistics[RecordStatType:: BACK_READS ] );
1447+ record.storeInteger (f_mon_rec_frg_reads, statistics[RecordStatType:: FRAGMENT_READS ] );
1448+ record.storeInteger (f_mon_rec_rpt_reads, statistics[RecordStatType:: RPT_READS ] );
1449+ record.storeInteger (f_mon_rec_imgc, statistics[RecordStatType:: IMGC ] );
14501450 record.write ();
14511451
14521452 // logical I/O statistics (table wise)
14531453
1454- for (RuntimeStatistics::Iterator iter = statistics.begin () ; iter != statistics. end () ; ++iter)
1454+ for (auto iter ( statistics.getRelCounters ()) ; iter; ++iter)
14551455 {
14561456 const auto rec_stat_id = getGlobalId (fb_utils::genUniqueId ());
14571457
@@ -1466,21 +1466,21 @@ void Monitoring::putStatistics(SnapshotData::DumpRecord& record, const RuntimeSt
14661466 record.reset (rel_mon_rec_stats);
14671467 record.storeGlobalId (f_mon_rec_stat_id, rec_stat_id);
14681468 record.storeInteger (f_mon_rec_stat_group, stat_group);
1469- record.storeInteger (f_mon_rec_seq_reads, (*iter). getCounter (RuntimeStatistics:: RECORD_SEQ_READS ) );
1470- record.storeInteger (f_mon_rec_idx_reads, (*iter). getCounter (RuntimeStatistics:: RECORD_IDX_READS ) );
1471- record.storeInteger (f_mon_rec_inserts, (*iter). getCounter (RuntimeStatistics:: RECORD_INSERTS ) );
1472- record.storeInteger (f_mon_rec_updates, (*iter). getCounter (RuntimeStatistics:: RECORD_UPDATES ) );
1473- record.storeInteger (f_mon_rec_deletes, (*iter). getCounter (RuntimeStatistics:: RECORD_DELETES ) );
1474- record.storeInteger (f_mon_rec_backouts, (*iter). getCounter (RuntimeStatistics:: RECORD_BACKOUTS ) );
1475- record.storeInteger (f_mon_rec_purges, (*iter). getCounter (RuntimeStatistics:: RECORD_PURGES ) );
1476- record.storeInteger (f_mon_rec_expunges, (*iter). getCounter (RuntimeStatistics:: RECORD_EXPUNGES ) );
1477- record.storeInteger (f_mon_rec_locks, (*iter). getCounter (RuntimeStatistics:: RECORD_LOCKS ) );
1478- record.storeInteger (f_mon_rec_waits, (*iter). getCounter (RuntimeStatistics:: RECORD_WAITS ) );
1479- record.storeInteger (f_mon_rec_conflicts, (*iter). getCounter (RuntimeStatistics:: RECORD_CONFLICTS ) );
1480- record.storeInteger (f_mon_rec_bkver_reads, (*iter). getCounter (RuntimeStatistics:: RECORD_BACKVERSION_READS ) );
1481- record.storeInteger (f_mon_rec_frg_reads, (*iter). getCounter (RuntimeStatistics:: RECORD_FRAGMENT_READS ) );
1482- record.storeInteger (f_mon_rec_rpt_reads, (*iter). getCounter (RuntimeStatistics:: RECORD_RPT_READS ) );
1483- record.storeInteger (f_mon_rec_imgc, (*iter). getCounter (RuntimeStatistics:: RECORD_IMGC ) );
1469+ record.storeInteger (f_mon_rec_seq_reads, (*iter)[RecordStatType:: SEQ_READS ] );
1470+ record.storeInteger (f_mon_rec_idx_reads, (*iter)[RecordStatType:: IDX_READS ] );
1471+ record.storeInteger (f_mon_rec_inserts, (*iter)[RecordStatType:: INSERTS ] );
1472+ record.storeInteger (f_mon_rec_updates, (*iter)[RecordStatType:: UPDATES ] );
1473+ record.storeInteger (f_mon_rec_deletes, (*iter)[RecordStatType:: DELETES ] );
1474+ record.storeInteger (f_mon_rec_backouts, (*iter)[RecordStatType:: BACKOUTS ] );
1475+ record.storeInteger (f_mon_rec_purges, (*iter)[RecordStatType:: PURGES ] );
1476+ record.storeInteger (f_mon_rec_expunges, (*iter)[RecordStatType:: EXPUNGES ] );
1477+ record.storeInteger (f_mon_rec_locks, (*iter)[RecordStatType:: LOCKS ] );
1478+ record.storeInteger (f_mon_rec_waits, (*iter)[RecordStatType:: WAITS ] );
1479+ record.storeInteger (f_mon_rec_conflicts, (*iter)[RecordStatType:: CONFLICTS ] );
1480+ record.storeInteger (f_mon_rec_bkver_reads, (*iter)[RecordStatType:: BACK_READS ] );
1481+ record.storeInteger (f_mon_rec_frg_reads, (*iter)[RecordStatType:: FRAGMENT_READS ] );
1482+ record.storeInteger (f_mon_rec_rpt_reads, (*iter)[RecordStatType:: RPT_READS ] );
1483+ record.storeInteger (f_mon_rec_imgc, (*iter)[RecordStatType:: IMGC ] );
14841484 record.write ();
14851485 }
14861486}
0 commit comments