tmf: Fix start time of partial history event requests
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 16 Apr 2013 13:27:36 +0000 (09:27 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 17 Apr 2013 19:59:09 +0000 (15:59 -0400)
Change-Id: I187750b8cd781c7e7bed893678f5d9e84e6ce7c3
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/11946
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bhufmann@gmail.com>
IP-Clean: Bernd Hufmann <bhufmann@gmail.com>
Tested-by: Bernd Hufmann <bhufmann@gmail.com>
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/partial/PartialHistoryBackend.java

index 9d2f97b6d7477fc562f56e795180ae078746a3bf..34e6129a0d2fa4eef91114f128483916e86a2269 100644 (file)
@@ -213,7 +213,13 @@ public class PartialHistoryBackend implements IStateHistoryBackend {
 
         /* Send an event request to update the state system to the target time. */
         TmfTimeRange range = new TmfTimeRange(
-                new TmfTimestamp(checkpointTime, -9), new TmfTimestamp(t, -9));
+                /*
+                 * The state at the checkpoint already includes any state change
+                 * caused by the event(s) happening exactly at 'checkpointTime',
+                 * if any. We must not include those events in the query.
+                 */
+                new TmfTimestamp(checkpointTime + 1, -9),
+                new TmfTimestamp(t, -9));
         ITmfEventRequest request = new PartialStateSystemRequest(partialInput, range);
         partialInput.getTrace().sendRequest(request);
 
This page took 0.026328 seconds and 5 git commands to generate.