tmf: reactivate persistent experiment index
authorBernd Hufmann <Bernd.Hufmann@ericsson.com>
Wed, 12 Mar 2014 12:19:23 +0000 (08:19 -0400)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Wed, 12 Mar 2014 18:13:10 +0000 (14:13 -0400)
The assignment of the traces of an experiment where moved after the
super.initialize() method call. This lead to the in-memory being used
instead of the persistent index.

Change-Id: I4280929453a3f3f951f1e6897c4b72511c547517
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/23242
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Hudson CI
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfExperiment.java

index 0bd331fc1e5bd3c4729e2c0d942ce4e01f923be9..013934fcc4e6378786208c1cd739b2bf23f2b0e4 100644 (file)
@@ -224,14 +224,14 @@ public class TmfExperiment extends TmfTrace implements ITmfEventParser, ITmfPers
         setCacheSize(indexPageSize);
         setStreamingInterval(0);
         setParser(this);
+        // traces have to be set before super.initialize()
+        fTraces = traces;
         try {
             super.initialize(resource, path, type);
         } catch (TmfTraceException e) {
             Activator.logError("Error initializing experiment", e); //$NON-NLS-1$
         }
 
-        fTraces = traces;
-
         if (resource != null) {
             try {
                 this.synchronizeTraces();
This page took 0.02915 seconds and 5 git commands to generate.