Update statistics of the worker. */
| 2148 | |
| 2149 | /* Update statistics of the worker. */ |
| 2150 | static void |
| 2151 | UpdateWorkerStats(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. |
no test coverage detected