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:
parent
b92ac53aeb
commit
5d1fbece58
1 changed files with 2 additions and 1 deletions
|
@ -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() << ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue