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

Function UpdateWorkerStats

src/backend/replication/logical/worker.c:2150–2161  ·  view source on GitHub ↗

Update statistics of the worker. */

Source from the content-addressed store, hash-verified

2148
2149/* Update statistics of the worker. */
2150static void
2151UpdateWorkerStats(XLogRecPtr last_lsn, TimestampTz send_time, bool reply)
2152{
2153 MyLogicalRepWorker->last_lsn = last_lsn;
2154 MyLogicalRepWorker->last_send_time = send_time;
2155 MyLogicalRepWorker->last_recv_time = GetCurrentTimestamp();
2156 if (reply)
2157 {
2158 MyLogicalRepWorker->reply_lsn = last_lsn;
2159 MyLogicalRepWorker->reply_time = send_time;
2160 }
2161}
2162
2163/*
2164 * Apply main loop.

Callers 1

LogicalRepApplyLoopFunction · 0.85

Calls 1

GetCurrentTimestampFunction · 0.85

Tested by

no test coverage detected