MCPcopy Create free account
hub / github.com/ByConity/ByConity / put

Method put

src/Statistics/CachedStatsProxy.cpp:169–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168template <bool cache_only>
169void CachedStatsProxyImpl<cache_only>::put(const StatsTableIdentifier & table_id, StatsData && data)
170{
171 // each server has its own cache
172 // to clear the cache, we need to send a request to each server
173 // so we don't clear the cache here
174 if (cache_only)
175 {
176 return;
177 }
178
179 catalog->writeStatsData(table_id, data);
180}
181
182template <bool cache_only>
183void CachedStatsProxyImpl<cache_only>::drop(const StatsTableIdentifier & table_id)

Callers 1

writeToCatalogMethod · 0.45

Calls 1

writeStatsDataMethod · 0.45

Tested by

no test coverage detected