MCPcopy Create free account
hub / github.com/comaps/comaps / MarkAsApplied

Method MarkAsApplied

libs/storage/diff_scheme/diffs_data_source.cpp:75–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void DiffsDataSource::MarkAsApplied(storage::CountryId const & countryId)
76{
77 CHECK_THREAD_CHECKER(m_threadChecker, ());
78
79 auto it = m_diffs.find(countryId);
80 if (it == m_diffs.end())
81 return;
82
83 it->second.m_isApplied = true;
84
85 if (!IsDiffsAvailable(m_diffs))
86 m_status = Status::NotAvailable;
87}
88
89void DiffsDataSource::RemoveDiffForCountry(storage::CountryId const & countryId)
90{

Callers 1

ApplyDiffMethod · 0.80

Calls 3

IsDiffsAvailableFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected