Fix NetQueryDebug.state_timestamp_ initialization.

GitOrigin-RevId: 7cd96ac1d2e423767b8ae4a9d8f1ef5347fa41e8
This commit is contained in:
levlam 2020-09-03 07:21:01 +03:00
parent 51f8ed3526
commit 9d64589456

View File

@ -352,8 +352,9 @@ class NetQuery : public TsListNode<NetQueryDebug> {
, answer_(std::move(answer)) , answer_(std::move(answer))
, tl_constructor_(tl_constructor) , tl_constructor_(tl_constructor)
, total_timeout_limit_(total_timeout_limit) { , total_timeout_limit_(total_timeout_limit) {
get_data_unsafe().my_id_ = get_my_id(); auto &data = get_data_unsafe();
get_data_unsafe().start_timestamp_ = Time::now(); data.my_id_ = get_my_id();
data.start_timestamp_ = data.state_timestamp_ = Time::now();
LOG(INFO) << *this; LOG(INFO) << *this;
if (stats) { if (stats) {
nq_counter_ = stats->register_query(this); nq_counter_ = stats->register_query(this);