MCPcopy
hub / github.com/uber/aresdb / Release

Method Release

query/aql_processor.go:255–261  ·  view source on GitHub ↗

Release releases all device memory it allocated. It **should only called** when any errors happens while the query is processed.

()

Source from the content-addressed store, hash-verified

253// Release releases all device memory it allocated. It **should only called** when any errors happens while the query is
254// processed.
255func (qc *AQLQueryContext) Release() {
256 // release device memory for processing current batch.
257 qc.OOPK.currentBatch.cleanupBeforeAggregation()
258 qc.OOPK.currentBatch.swapResultBufferForNextBatch()
259 qc.cleanUpDeviceStatus()
260 qc.ReleaseHostResultsBuffers()
261}
262
263// CleanUpDevice cleans up the device status including
264// 1. clean up the device buffer for storing results.

Callers 1

ProcessQueryMethod · 0.95

Tested by

no test coverage detected