|
From: <di...@us...> - 2012-10-31 14:20:35
|
Revision: 57266
http://firebird.svn.sourceforge.net/firebird/?rev=57266&view=rev
Author: dimitr
Date: 2012-10-31 14:20:24 +0000 (Wed, 31 Oct 2012)
Log Message:
-----------
Avoid a sweep pass for temporary tables, as the sweeper always sees those tables as empty, but even setting them up as empty has a non-zero cost.
Modified Paths:
--------------
firebird/trunk/src/jrd/vio.cpp
Modified: firebird/trunk/src/jrd/vio.cpp
===================================================================
--- firebird/trunk/src/jrd/vio.cpp 2012-10-31 14:16:00 UTC (rev 57265)
+++ firebird/trunk/src/jrd/vio.cpp 2012-10-31 14:20:24 UTC (rev 57266)
@@ -3269,8 +3269,10 @@
for (size_t i = 1; (vector = attachment->att_relations) && i < vector->count(); i++)
{
- if ((relation = (*vector)[i]) && !(relation->rel_flags & (REL_deleted | REL_deleting)) &&
- relation->getPages(tdbb)->rel_pages)
+ if ((relation = (*vector)[i]) &&
+ !(relation->rel_flags & (REL_deleted | REL_deleting)) &&
+ !relation->isTemporary() &&
+ relation->getPages(tdbb)->rel_pages)
{
rpb.rpb_relation = relation;
rpb.rpb_number.setValue(BOF_NUMBER);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|