Skip to content

Commit

Permalink
Merge pull request #32941 from vespa-engine/toregge/darwin/fix-format…
Browse files Browse the repository at this point in the history
…-string

Fix format string.
  • Loading branch information
geirst authored Nov 25, 2024
2 parents 117f625 + 1a6b9b5 commit d4047c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ MatchEngine::doSearch(const SearchRequest & searchRequest) {
vespalib::Issue::report("search request timed out; results may be incomplete");
}
searchRequest.trace().addEvent(4,
vespalib::make_string("returning %zu hits from total %zu",
vespalib::make_string("returning %zu hits from total %" PRIu64,
ret->hits.size(), ret->totalHitCount));
return ret;
}
Expand Down
4 changes: 4 additions & 0 deletions searchlib/src/tests/diskindex/diskindex/diskindex_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,11 @@ DiskIndexTest::requireThatWeCanReadPostingList(const IOSettings& io_settings)
EXPECT_EQ(SimpleResult({1,3}), search(field_index, r, h));
if (io_settings._use_directio && !io_settings._use_mmap) {
auto directio_handle = field_index.read_uncached_posting_list(r, false);
#ifdef __linux__
EXPECT_LT(256, directio_handle._allocSize);
#else
EXPECT_GT(64, directio_handle._allocSize);
#endif
EXPECT_EQ(SimpleResult({1,3}), search(field_index, r, directio_handle));
auto trimmed_directio_handle = field_index.read_uncached_posting_list(r, true);
EXPECT_GT(64, trimmed_directio_handle._allocSize);
Expand Down

0 comments on commit d4047c9

Please sign in to comment.