Fix log message.

This commit is contained in:
levlam 2024-01-24 16:06:43 +03:00
parent fbd6f27d7b
commit 741c80cf13
2 changed files with 2 additions and 2 deletions

View File

@ -96,8 +96,9 @@ DcAuthManager::DcInfo *DcAuthManager::find_dc(int32 dc_id) {
void DcAuthManager::update_auth_key_state() {
auto dc_id = narrow_cast<int32>(get_link_token());
auto &dc = get_dc(dc_id);
auto old_auth_key_state = dc.auth_key_state;
dc.auth_key_state = get_auth_key_state(dc.shared_auth_data->get_auth_key());
VLOG(dc) << "Update " << dc_id << " auth key state from " << dc.auth_key_state << " to " << dc.auth_key_state;
VLOG(dc) << "Update DcId{" << dc_id << "} auth key state from " << old_auth_key_state << " to " << dc.auth_key_state;
loop();
}

View File

@ -308,7 +308,6 @@ class ConcurrentHashMap {
continue;
}
auto node_key = node.key.load(std::memory_order_relaxed);
//LOG(ERROR) << node_key << " " << node_key;
auto ok = migrate_to_hash_map_->with_value(
node_key, true, [&](auto &node_value) { node_value.store(old_value, std::memory_order_relaxed); });
LOG_CHECK(ok) << "Migration overflow";