mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 19:00:36 +08:00
Subtract from num bytes in use (#13944)
This commit is contained in:
@@ -562,6 +562,10 @@ void PlasmaStore::EraseFromObjectTable(const ObjectID &object_id) {
|
||||
if (object->device_num == 0) {
|
||||
PlasmaAllocator::Free(object->pointer, buff_size);
|
||||
}
|
||||
if (object->ref_count > 0) {
|
||||
// A client was using this object.
|
||||
num_bytes_in_use_ -= object->data_size + object->metadata_size;
|
||||
}
|
||||
store_info_.objects.erase(object_id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user