File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
hollow/src/main/java/com/netflix/hollow/api/client Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,6 @@ public synchronized boolean updateTo(long requestedVersion) throws Throwable {
117
117
return updateTo (new HollowConsumer .VersionInfo (requestedVersion ));
118
118
}
119
119
public synchronized boolean updateTo (HollowConsumer .VersionInfo requestedVersionInfo ) throws Throwable {
120
- metrics .setLastRefreshStartNs (System .nanoTime ());
121
120
long requestedVersion = requestedVersionInfo .getVersion ();
122
121
if (requestedVersion == getCurrentVersionId ()) {
123
122
if (requestedVersion == HollowConstants .VERSION_NONE && hollowDataHolderVolatile == null ) {
@@ -128,6 +127,7 @@ public synchronized boolean updateTo(HollowConsumer.VersionInfo requestedVersion
128
127
}
129
128
return true ;
130
129
}
130
+ metrics .setLastRefreshStartNs (System .nanoTime ());
131
131
132
132
// Take a snapshot of the listeners to ensure additions or removals may occur concurrently
133
133
// but will not take effect until a subsequent refresh
@@ -168,8 +168,10 @@ public synchronized boolean updateTo(HollowConsumer.VersionInfo requestedVersion
168
168
&& requestedVersion == HollowConstants .VERSION_LATEST )
169
169
throw new IllegalArgumentException ("Could not create an update plan, because no existing versions could be retrieved." );
170
170
171
- if (updatePlan .destinationVersion (requestedVersion ) == getCurrentVersionId ())
171
+ if (updatePlan .destinationVersion (requestedVersion ) == getCurrentVersionId ()) {
172
+ metrics .setLastRefreshEndNs (System .nanoTime ());
172
173
return true ;
174
+ }
173
175
174
176
if (updatePlan .isSnapshotPlan ()) { // 1 snapshot and 0+ delta transitions
175
177
HollowDataHolder oldDh = hollowDataHolderVolatile ;
You can’t perform that action at this time.
0 commit comments