MCPcopy Create free account
hub / github.com/apache/cloudberry / feTimestampDifferenceExceeds

Function feTimestampDifferenceExceeds

src/bin/pg_basebackup/streamutil.c:649–657  ·  view source on GitHub ↗

* Frontend version of TimestampDifferenceExceeds(), since we are not * linked with backend code. */

Source from the content-addressed store, hash-verified

647 * linked with backend code.
648 */
649bool
650feTimestampDifferenceExceeds(TimestampTz start_time,
651 TimestampTz stop_time,
652 int msec)
653{
654 TimestampTz diff = stop_time - start_time;
655
656 return (diff >= msec * INT64CONST(1000));
657}
658
659/*
660 * Converts an int64 to network byte order.

Callers 2

StreamLogicalLogFunction · 0.85
HandleCopyStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected