Do nothing for 0 BufferSlice size change.

GitOrigin-RevId: 2a57325e4f8b7be83db671f561bce9a98de92622
This commit is contained in:
levlam 2020-08-11 05:52:56 +03:00
parent 4d19016970
commit 14014e3f3d

View File

@ -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);
}