From e1228462f2d5dbc511be6d8d5bf3d6f09a413c98 Mon Sep 17 00:00:00 2001 From: peiwangdb Date: Mon, 18 Oct 2021 09:42:14 -0700 Subject: [PATCH] hindex: remove autoload check for update case --- .../src/main/java/io/prestosql/heuristicindex/IndexCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presto-main/src/main/java/io/prestosql/heuristicindex/IndexCache.java b/presto-main/src/main/java/io/prestosql/heuristicindex/IndexCache.java index 34886a6fb..3aed875a0 100644 --- a/presto-main/src/main/java/io/prestosql/heuristicindex/IndexCache.java +++ b/presto-main/src/main/java/io/prestosql/heuristicindex/IndexCache.java @@ -165,8 +165,8 @@ public class IndexCache if (oldIndexMap.get(newIndexRecord.name) != newIndexRecord.lastModifiedTime) { // update operation updated = true; + evictFromCache(newIndexRecord); if (newIndexRecord.isAutoloadEnabled()) { - evictFromCache(newIndexRecord); preloadIndex(newIndexRecord); LOG.debug("Index {%s} has been updated in cache.", newIndexRecord); }