satellite/metainfo/metabase: add extra validation to IterateLoopSegments

Change-Id: I377bf9f661dcff6ba29d10f2909eb59d6d361c5d
This commit is contained in:
Egon Elbre 2021-03-06 11:17:12 +02:00
parent 150d75da28
commit b5e95ec79f

View File

@ -312,5 +312,9 @@ func (db *DB) IterateLoopStreams(ctx context.Context, opts IterateLoopStreams, h
} }
} }
if !noMoreData {
return Error.New("expected rows to be completely read")
}
return nil return nil
} }