Skip to content

Commit 6e9f5cd

Browse files
committed
StorageNodeManager: Correct cast on cache cleaning
1 parent a160188 commit 6e9f5cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orm/Xtensive.Orm/Orm/StorageNodeManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public bool RemoveNode([NotNull] string nodeId, bool clearQueryCache = false)
6161

6262
if (removeResult && clearQueryCache) {
6363
var queryCache = (Caching.FastConcurrentLruCache<object, Pair<object, Linq.ParameterizedQuery>>) handlers.Domain.QueryCache;
64-
foreach (var key in queryCache.Keys.Where(k => k is (object _, string keyNodeId) && keyNodeId == nodeId).ToChainedBuffer()) {
64+
foreach (var key in queryCache.Keys.Where(k => k is Pair<object, string> pair && pair.Second == nodeId).ToChainedBuffer()) {
6565
queryCache.RemoveKey(key);
6666
}
6767
}

0 commit comments

Comments
 (0)