From 80e1dcfe3448f170310d73f62cb727519a19f961 Mon Sep 17 00:00:00 2001 From: tux Date: Mon, 26 Apr 2021 14:08:09 +0800 Subject: [PATCH] Repair the cache pollution caused by v.tenat != clientConfig.NamespaceId --- clients/config_client/config_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/config_client/config_client.go b/clients/config_client/config_client.go index b3bfb1bc..cc5a3b88 100644 --- a/clients/config_client/config_client.go +++ b/clients/config_client/config_client.go @@ -428,7 +428,7 @@ func longPulling(taskId int) func() error { } for _, v := range initializationList { v.isInitializing = false - cacheMap.Set(util.GetConfigCacheKey(v.dataId, v.group, clientConfig.NamespaceId), v) + cacheMap.Set(util.GetConfigCacheKey(v.dataId, v.group, v.tenant), v) } if len(strings.ToLower(strings.Trim(changed, " "))) == 0 { logger.Info("[client.ListenConfig] no change")