Commit 8a64dcbd authored by Tudor Bosman's avatar Tudor Bosman Committed by Jordan DeLong

Fix InpuByteStreamSplitter in debug mode.

Test Plan: stream_test, exception_tracer_test

Reviewed By: soren@fb.com

FB internal diff: D569476
parent ad8e104a
......@@ -34,7 +34,7 @@ InputByteStreamSplitter<Stream>::InputByteStreamSplitter(
template <class Stream>
bool InputByteStreamSplitter<Stream>::operator()(ByteRange& chunk) {
DCHECK_EQ(buffer_->length(), 0);
DCHECK(!buffer_ || buffer_->length() == 0);
chunk.clear();
if (rest_.empty()) {
if (done_) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment