mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Merge pull request #8625 from Vxider/fix-liveview-timestamp
fix liveview timestamp bug
This commit is contained in:
commit
166e44922f
@ -149,7 +149,7 @@ protected:
|
|||||||
}
|
}
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
UInt64 timestamp_usec = static_cast<UInt64>(timestamp.epochMicroseconds());
|
UInt64 timestamp_usec = static_cast<UInt64>(Poco::Timestamp().epochMicroseconds());
|
||||||
|
|
||||||
/// Or spurious wakeup.
|
/// Or spurious wakeup.
|
||||||
bool signaled = std::cv_status::no_timeout == storage->condition.wait_for(lock,
|
bool signaled = std::cv_status::no_timeout == storage->condition.wait_for(lock,
|
||||||
@ -166,7 +166,7 @@ protected:
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// heartbeat
|
// heartbeat
|
||||||
last_event_timestamp_usec = static_cast<UInt64>(timestamp.epochMicroseconds());
|
last_event_timestamp_usec = static_cast<UInt64>(Poco::Timestamp().epochMicroseconds());
|
||||||
return { getHeader(), true };
|
return { getHeader(), true };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -207,7 +207,6 @@ private:
|
|||||||
UInt64 heartbeat_interval_usec;
|
UInt64 heartbeat_interval_usec;
|
||||||
UInt64 temporary_live_view_timeout_sec;
|
UInt64 temporary_live_view_timeout_sec;
|
||||||
UInt64 last_event_timestamp_usec = 0;
|
UInt64 last_event_timestamp_usec = 0;
|
||||||
Poco::Timestamp timestamp;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user