Do nothing for 0 BufferSlice size change.
GitOrigin-RevId: 2a57325e4f8b7be83db671f561bce9a98de92622
This commit is contained in:
parent
4d19016970
commit
14014e3f3d
@ -32,6 +32,10 @@ int64 BufferAllocator::get_buffer_slice_size() {
|
||||
}
|
||||
|
||||
void BufferAllocator::track_buffer_slice(int64 size) {
|
||||
if (size == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
buffer_slice_size_.add(size);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user