提交 1f1fabba 编写于 作者: N Nikita Mikhaylov

atomic added

上级 a8628134
......@@ -867,8 +867,6 @@ void CacheDictionary::update(const std::vector<Key> & requested_ids, std::unorde
stream->readPrefix();
const ProfilingScopedWriteRWLock write_lock{rw_lock, ProfileEvents::DictCacheLockWriteNs};
while (const auto block = stream->read())
{
const auto id_column = typeid_cast<const ColumnUInt64 *>(block.safeGetByPosition(0).column.get());
......@@ -883,6 +881,8 @@ void CacheDictionary::update(const std::vector<Key> & requested_ids, std::unorde
ext::range(0, attributes.size()),
[&block](size_t i) { return block.safeGetByPosition(i + 1).column.get(); });
const ProfilingScopedWriteRWLock write_lock{rw_lock, ProfileEvents::DictCacheLockWriteNs};
for (const auto i : ext::range(0, ids.size()))
{
const auto id = ids[i];
......
......@@ -319,7 +319,7 @@ private:
std::unique_ptr<ArenaWithFreeLists> string_arena;
mutable std::exception_ptr last_exception;
mutable size_t error_count = 0;
mutable std::atomic<size_t> error_count = 0;
mutable std::chrono::system_clock::time_point backoff_end_time;
mutable pcg64 rnd_engine;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册