streaming/buffer: add debug validation for 'impossible' condition

pull/7389/head
Victor Julien 3 years ago
parent 79f0f2fde4
commit 5c76f787f9

@ -654,7 +654,7 @@ int StreamingBufferInsertAt(StreamingBuffer *sb, StreamingBufferSegment *seg,
uint64_t offset)
{
BUG_ON(seg == NULL);
DEBUG_VALIDATE_BUG_ON(offset < sb->stream_offset);
if (offset < sb->stream_offset)
return -2;

Loading…
Cancel
Save