diff --git a/core/src/utils/CommonUtil.cpp b/core/src/utils/CommonUtil.cpp index 361a06b029..39c510f562 100644 --- a/core/src/utils/CommonUtil.cpp +++ b/core/src/utils/CommonUtil.cpp @@ -256,7 +256,7 @@ CommonUtil::EraseFromCache(const std::string& item_key) { #ifdef MILVUS_GPU_VERSION server::Config& config = server::Config::GetInstance(); std::vector gpus; - Status s = config.GetGpuResourceConfigSearchResources(gpus); + config.GetGpuResourceConfigSearchResources(gpus); for (auto& gpu : gpus) { cache::GpuCacheMgr::GetInstance(gpu)->EraseItem(item_key); }