mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 17:27:00 +00:00
clang
This commit is contained in:
@@ -624,10 +624,11 @@ TaggedCache<
|
||||
-> std::enable_if_t<IsKeyCache, ReturnType>
|
||||
{
|
||||
clock_type::time_point const now(m_clock.now());
|
||||
auto [it, inserted] = m_cache.emplace( // TODO: make sure partition is locked
|
||||
std::piecewise_construct,
|
||||
std::forward_as_tuple(key),
|
||||
std::forward_as_tuple(now));
|
||||
auto [it, inserted] =
|
||||
m_cache.emplace( // TODO: make sure partition is locked
|
||||
std::piecewise_construct,
|
||||
std::forward_as_tuple(key),
|
||||
std::forward_as_tuple(now));
|
||||
if (!inserted)
|
||||
it->second.last_access = now;
|
||||
return inserted;
|
||||
|
||||
@@ -380,7 +380,7 @@ public:
|
||||
clear()
|
||||
{
|
||||
for (auto& p : map_)
|
||||
p.clear(); // TODO make sure that it is locked inside
|
||||
p.clear(); // TODO make sure that it is locked inside
|
||||
}
|
||||
|
||||
iterator
|
||||
@@ -406,7 +406,7 @@ public:
|
||||
{
|
||||
std::size_t ret = 0;
|
||||
for (auto& p : map_)
|
||||
ret += p.size(); // TODO make sure that it is locked inside
|
||||
ret += p.size(); // TODO make sure that it is locked inside
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user