mirror of
https://github.com/wassname/ray.git
synced 2026-10-08 12:28:47 +08:00
Subtract from num bytes in use (#13944)
This commit is contained in:
1 parent
9f085a0874
commit
7779637fa4
1 file changed
+4
@@ -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