8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 01:23:03 +01:00

Enabled per-table runtime stats for sweeper (necessary for CORE-3656).

I don't think it will have noticeable performance penalty on current HW.
This commit is contained in:
hvlad 2012-06-29 16:29:13 +00:00
parent 94dc5b1e90
commit 0b46626bb7

View File

@ -513,15 +513,6 @@ void VIO_bump_count(thread_db* tdbb, USHORT count_id, jrd_rel* relation)
}
#endif
#ifndef DEV_BUILD
// The sweeper threads run in the background without
// any way to inspect these counters. For debugging
// purposes, they are maintained in the DEV_BUILD.
if (tdbb->tdbb_flags & TDBB_sweeper) {
return;
}
#endif
const USHORT relation_id = relation->rel_id;
vcl** ptr = attachment->att_counts + count_id;