MCPcopy Create free account
hub / github.com/Shopify/ghostferry / updateRowStatsForTable

Method updateRowStatsForTable

state_tracker.go:288–293  ·  view source on GitHub ↗
(table string, rowStats RowStats)

Source from the content-addressed store, hash-verified

286}
287
288func (s *StateTracker) updateRowStatsForTable(table string, rowStats RowStats) {
289 s.rowStatsWrittenPerTable[table] = RowStats{
290 NumBytes: rowStats.NumBytes + s.rowStatsWrittenPerTable[table].NumBytes,
291 NumRows: rowStats.NumRows + s.rowStatsWrittenPerTable[table].NumRows,
292 }
293}
294
295func (s *StateTracker) updateSpeedLog(deltaPaginationKey float64) {
296 if s.iterationSpeedLog == nil {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected