Skip to content

Commit 3eb853d

Browse files
committed
fix comments
1 parent 4ca74cd commit 3eb853d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/org/elasticsearch/index/engine/LuceneChangesSnapshotTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,15 @@ public void testAccessStoredFieldsSequentially() throws Exception {
234234
}
235235
assertFalse(snapshot.useSequentialStoredFieldsReader());
236236
}
237-
// enable optimization for sequential access of 10+ docs
237+
// disable optimization for non-sequential accesses
238238
try (LuceneChangesSnapshot snapshot =
239239
(LuceneChangesSnapshot) engine.newChangesSnapshot("test", between(1, 3), between(20, 100), false)) {
240240
while ((op = snapshot.next()) != null) {
241241
assertFalse(op.toString(), snapshot.useSequentialStoredFieldsReader());
242242
}
243243
assertFalse(snapshot.useSequentialStoredFieldsReader());
244244
}
245-
// disable optimization for non-sequential accesses
245+
// enable optimization for sequential access of 10+ docs
246246
try (LuceneChangesSnapshot snapshot =
247247
(LuceneChangesSnapshot) engine.newChangesSnapshot("test", 11, between(21, 100), false)) {
248248
while ((op = snapshot.next()) != null) {

0 commit comments

Comments
 (0)