Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 061632773846e95af7ca7e88d7afa7b2 > files > 13

dbxml-2.3.10-2mdv2008.1.src.rpm

diff -u dbxml-2.3.10-original/dbxml/src/dbxml/Statistics.cpp dbxml-2.3.10/dbxml/src/dbxml/Statistics.cpp
--- dbxml-2.3.10-original/dbxml/src/dbxml/Statistics.cpp	2006-10-30 17:45:53.000000000 +0000
+++ dbxml-2.3.10/dbxml/src/dbxml/Statistics.cpp	2007-10-26 12:16:19.000000000 +0100
@@ -220,7 +220,6 @@
 		context.key().set_size(structureLength); // trim the value off
 	}
 
-	StatsMapKey tmpKey(key.container);
 	KeyStatistics tmpStats;
 	KeyStatistics result;
 
@@ -242,9 +241,6 @@
 			else {
 				++found;
 
-				// Cache the intermediate value (it might be useful)
-				tmpKey.key.unmarshalStructure(context.key());
-				tmpKey.key.getIndex().set(key.key.getSyntaxType(), Index::SYNTAX_MASK);
 				tmpStats.setThisFromDbt(context.data());
 
 				// Fix the unique keys value, if necessary
@@ -253,9 +249,6 @@
 					tmpStats.numUniqueKeys_ = 1;
 				}
 
-				// Store the intermediate value
-				putKeyStatistics(tmpKey, tmpStats);
-
 				// add the value it to the results
 				result.add(tmpStats);