MCPcopy Create free account
hub / github.com/bytedance/bolt / updateTracedBytesAndCheckLimit

Method updateTracedBytesAndCheckLimit

bolt/core/QueryCtx.cpp:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void QueryCtx::updateTracedBytesAndCheckLimit(uint64_t bytes) {
105 if (numTracedBytes_.fetch_add(bytes) + bytes >=
106 queryConfig_.queryTraceMaxBytes()) {
107 BOLT_TRACE_LIMIT_EXCEEDED(fmt::format(
108 "Query exceeded per-query local trace limit of {}",
109 succinctBytes(queryConfig_.queryTraceMaxBytes())));
110 }
111}
112
113std::unique_ptr<memory::MemoryReclaimer> QueryCtx::MemoryReclaimer::create(
114 QueryCtx* queryCtx,

Callers 1

maybeMakeTraceConfigMethod · 0.80

Calls 2

succinctBytesFunction · 0.85
queryTraceMaxBytesMethod · 0.80

Tested by

no test coverage detected