Skip to content

Commit ec1e0cf

Browse files
committed
wip
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent a4d20ff commit ec1e0cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/informer/TemporaryResourceCache.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ public synchronized void putResource(T newResource, String previousResourceVersi
145145
}
146146

147147
if (moveAhead
148-
|| (cachedResource != null && isLaterResourceVersion(newResource, cachedResource))) {
148+
|| cachedResource == null
149+
|| isLaterResourceVersion(newResource, cachedResource)) {
149150
log.debug(
150151
"Temporarily moving ahead to target version {} for resource id: {}",
151152
newResource.getMetadata().getResourceVersion(),

0 commit comments

Comments
 (0)