logd: additional logging if read_offset > buffer_it->write_offset()

I didn't expect this to ever be hit, but apparently it is, so add
additional logging to track it down.

Bug: 168870781
Test: build
Change-Id: Ia472bc7458a3727e4d407365672f7394426ae515
This commit is contained in:
Tom Cherry 2020-09-21 15:10:20 -07:00
parent b92ac53aeb
commit 5d1fbece58

View file

@ -91,7 +91,8 @@ void SerializedFlushToState::UpdateLogsNeeded(log_id_t log_id) {
}
} else {
// read_offset > buffer_it->write_offset() should never happen.
CHECK(false);
LOG(FATAL) << "read_offset (" << read_offset << ") > buffer_it->write_offset() ("
<< buffer_it->write_offset() << ")";
}
}