MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / verbRecs

Method verbRecs

src/burp/BurpTasks.cpp:821–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819}
820
821void RestoreRelationTask::verbRecs(FB_UINT64& records, bool total)
822{
823 if (!total)
824 ++records;
825
826 const FB_UINT64 verb = m_masterGbl->verboseInterval / getMaxWorkers();
827 if (records < verb && !total)
828 return;
829
830 FB_UINT64 newRecs = m_records.exchangeAdd(records) + records;
831 records = 0;
832
833 FB_UINT64 newVerb = (newRecs / m_masterGbl->verboseInterval) * m_masterGbl->verboseInterval;
834 if (newVerb > m_verbRecs)
835 {
836 m_verbRecs = newVerb;
837 BURP_verbose(107, SafeArg() << m_verbRecs);
838 // msg 107 %ld records restored
839 }
840}
841
842void RestoreRelationTask::verbRecsFinal()
843{

Callers

nothing calls this directly

Calls 3

BURP_verboseFunction · 0.85
exchangeAddMethod · 0.80
SafeArgClass · 0.50

Tested by

no test coverage detected