@ -107,7 +107,7 @@ void TransactionLogIteratorImpl::SeekToStartSequence(
return ;
return ;
}
}
while ( RestrictedRead ( & record , & scratch ) ) {
while ( RestrictedRead ( & record , & scratch ) ) {
if ( record . size ( ) < 12 ) {
if ( record . size ( ) < WriteBatchInternal : : kHeader ) {
reporter_ . Corruption (
reporter_ . Corruption (
record . size ( ) , Status : : Corruption ( " very small log record " ) ) ;
record . size ( ) , Status : : Corruption ( " very small log record " ) ) ;
continue ;
continue ;
@ -167,7 +167,7 @@ void TransactionLogIteratorImpl::NextImpl(bool internal) {
currentLogReader_ - > UnmarkEOF ( ) ;
currentLogReader_ - > UnmarkEOF ( ) ;
}
}
while ( RestrictedRead ( & record , & scratch ) ) {
while ( RestrictedRead ( & record , & scratch ) ) {
if ( record . size ( ) < 12 ) {
if ( record . size ( ) < WriteBatchInternal : : kHeader ) {
reporter_ . Corruption (
reporter_ . Corruption (
record . size ( ) , Status : : Corruption ( " very small log record " ) ) ;
record . size ( ) , Status : : Corruption ( " very small log record " ) ) ;
continue ;
continue ;