Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/PropertyServer/CacheInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class CacheInfoList

bool get(const std::string &cacheName, CacheInfo &cacheInfo)
{
TC_ThreadWLock rlock(_rwl);
TC_ThreadRLock rlock(_rwl);
if(modules[_index].find(cacheName) != modules[_index].end())
{
cacheInfo = modules[_index][cacheName];
Expand Down
4 changes: 2 additions & 2 deletions src/PropertyServer/CacheInfoManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void CacheInfoManager::reload()

bool CacheInfoManager::getModuleInfo(const string &cacheName, CacheModuleInfo &moduleInfo) const
{
TC_ThreadWLock rlock(_rwl);
TC_ThreadRLock rlock(_rwl);

const map<string, CacheModuleInfo> &infos = _moduleInfos[_moduleInfoIndex];
map<string, CacheModuleInfo>::const_iterator it = infos.find(cacheName);
Expand All @@ -75,4 +75,4 @@ bool CacheInfoManager::getModuleInfo(const string &cacheName, CacheModuleInfo &m
}

return false;
}
}