Skip to content

Commit 0b8f316

Browse files
committed
assert
1 parent 664b739 commit 0b8f316

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

server/src/main/java/org/elasticsearch/index/codec/tsdb/TSDBSyntheticIdDocValuesHolder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ BytesRef lookupTsIdOrd(int tsIdOrdinal) throws IOException {
195195
* @throws IOException if any I/O exception occurs
196196
*/
197197
private int findStartDocIDForTsIdOrd(int tsIdOrd) throws IOException {
198+
assert tsIdOrd >= 0 : tsIdOrd;
198199
if (hasTsIdSkipper == false) {
199200
return 0;
200201
}

0 commit comments

Comments
 (0)