fixed a bug

This commit is contained in:
lgbo-ustc 2021-12-21 10:50:25 +08:00 committed by liangjiabiao
parent 2e2354be40
commit eb9e9bd47a

View File

@ -148,7 +148,7 @@ public:
/// Insert the new value only if the token is still in present in insert_tokens.
/// (The token may be absent because of a concurrent reset() call).
bool is_value_loaded = false;
bool is_value_updated = true;
bool is_value_updated = false;
auto token_it = insert_tokens.find(key);
if (token_it != insert_tokens.end() && token_it->second.get() == token)
{