aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/diskindex/fieldwriter/fieldwriter_test.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-01-08 14:57:55 +0100
committerGitHub <noreply@github.com>2019-01-08 14:57:55 +0100
commitbafc19bf1b7cf39b2c1293949de648b53ebd460c (patch)
tree86feaff930e998382b3cdd909b2c15031346cb65 /searchlib/src/tests/diskindex/fieldwriter/fieldwriter_test.cpp
parenta143431afe8f98867c371acf98993a6ea0ac5053 (diff)
parent669d8d25b914e02cc93273ee2b91cb76508bb121 (diff)
Merge pull request #8040 from vespa-engine/toregge/reuse-posting-list-iteator-during-validation
Reuse posting list iterator during validation.
Diffstat (limited to 'searchlib/src/tests/diskindex/fieldwriter/fieldwriter_test.cpp')
-rw-r--r--searchlib/src/tests/diskindex/fieldwriter/fieldwriter_test.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/searchlib/src/tests/diskindex/fieldwriter/fieldwriter_test.cpp b/searchlib/src/tests/diskindex/fieldwriter/fieldwriter_test.cpp
index 2f69f0b45cf..b091ad569fa 100644
--- a/searchlib/src/tests/diskindex/fieldwriter/fieldwriter_test.cpp
+++ b/searchlib/src/tests/diskindex/fieldwriter/fieldwriter_test.cpp
@@ -457,20 +457,10 @@ randReadField(FakeWordSet &wordSet,
// LOG(info, "loop=%d, wordNum=%u", loop, wordNum);
fw.validate(sb.get(), tfmda, verbose);
-
- sb.reset(handle.createIterator(counts, tfmda));
fw.validate(sb.get(), tfmda, 19, verbose);
-
- sb.reset(handle.createIterator(counts, tfmda));
fw.validate(sb.get(), tfmda, 99, verbose);
-
- sb.reset(handle.createIterator(counts, tfmda));
fw.validate(sb.get(), tfmda, 799, verbose);
-
- sb.reset(handle.createIterator(counts, tfmda));
fw.validate(sb.get(), tfmda, 6399, verbose);
-
- sb.reset(handle.createIterator(counts, tfmda));
fw.validate(sb.get(), tfmda, 11999, verbose);
++wordNum;
}