mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
Subtract from num bytes in use (#13944)
This commit is contained in:
parent
6f9d39fb3e
commit
fc89984162
1 changed files with 4 additions and 0 deletions
|
@ -571,6 +571,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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue