mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-06 10:52:56 +08:00
fix typo
This commit is contained in:
parent
8b652a00e2
commit
1d5f57c5dd
6
core/src/cache/Cache.inl
vendored
6
core/src/cache/Cache.inl
vendored
@ -99,8 +99,8 @@ Cache<ItemObj>::insert(const std::string& key, const ItemObj& item) {
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
|
||||
lru_.put(key, item);
|
||||
SERVER_LOG_DEBUG << "Insert " << key << " size:" << item->Size() << " bytes into cache, usage: " << usage_
|
||||
<< " bytes";
|
||||
SERVER_LOG_DEBUG << "Insert " << key << " size: " << item->Size() << " bytes into cache, usage: " << usage_
|
||||
<< " bytes," << " capacity: " << capacity_ << " bytes";
|
||||
}
|
||||
}
|
||||
|
||||
@ -116,7 +116,7 @@ Cache<ItemObj>::erase(const std::string& key) {
|
||||
usage_ -= old_item->Size();
|
||||
|
||||
SERVER_LOG_DEBUG << "Erase " << key << " size: " << old_item->Size() << " bytes from cache, usage: " << usage_
|
||||
<< " bytes";
|
||||
<< " bytes," << " capacity: " << capacity_ << " bytes";
|
||||
|
||||
lru_.erase(key);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user