Skip to content

Commit e858360

Browse files
authored
p1: disallow nullptr for fetchpage in bench (#618)
Signed-off-by: Alex Chi <[email protected]>
1 parent f05ce03 commit e858360

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/bpm_bench/bpm_bench.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ auto main(int argc, char **argv) -> int {
277277
auto page_idx = dist(gen);
278278
auto *page = bpm->FetchPage(page_ids[page_idx], AccessType::Lookup);
279279
if (page == nullptr) {
280-
continue;
280+
fmt::println(stderr, "cannot fetch page");
281+
std::terminate();
281282
}
282283

283284
page->RLatch();

0 commit comments

Comments
 (0)