mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +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)
|
||||
{
|
||||
UInt64 timestamp_usec = static_cast<UInt64>(timestamp.epochMicroseconds());
|
||||
UInt64 timestamp_usec = static_cast<UInt64>(Poco::Timestamp().epochMicroseconds());
|
||||
|
||||
/// Or spurious wakeup.
|
||||
bool signaled = std::cv_status::no_timeout == storage->condition.wait_for(lock,
|
||||
@ -166,7 +166,7 @@ protected:
|
||||
else
|
||||
{
|
||||
// heartbeat
|
||||
last_event_timestamp_usec = static_cast<UInt64>(timestamp.epochMicroseconds());
|
||||
last_event_timestamp_usec = static_cast<UInt64>(Poco::Timestamp().epochMicroseconds());
|
||||
return { getHeader(), true };
|
||||
}
|
||||
}
|
||||
@ -207,7 +207,6 @@ private:
|
||||
UInt64 heartbeat_interval_usec;
|
||||
UInt64 temporary_live_view_timeout_sec;
|
||||
UInt64 last_event_timestamp_usec = 0;
|
||||
Poco::Timestamp timestamp;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user