ReportManagedObject : Report space usage for a managed object (archive batch vector party).
(table string, shard, batchID, columnID int, bytes int64)
| 195 | |
| 196 | // ReportManagedObject : Report space usage for a managed object (archive batch vector party). |
| 197 | func (h *hostMemoryManager) ReportManagedObject(table string, shard, batchID, columnID int, bytes int64) { |
| 198 | if bytes <= 0 { |
| 199 | h.deleteManagedObject(table, shard, batchID, columnID) |
| 200 | } else { |
| 201 | h.addOrUpdateManagedObject(table, shard, batchID, columnID, bytes) |
| 202 | h.TriggerEviction() |
| 203 | } |
| 204 | utils.GetRootReporter().GetGauge(utils.ManagedMemorySize).Update(float64(h.getManagedSpaceUsage())) |
| 205 | } |
| 206 | |
| 207 | // Start will do a blocking preloading first and then start the go routines to do |
| 208 | // data preloading and eviction. |
nothing calls this directly
no test coverage detected