diff --git a/test/check_datapage.cpp b/test/check_datapage.cpp index 1dbb935..23c9ff9 100644 --- a/test/check_datapage.cpp +++ b/test/check_datapage.cpp @@ -91,7 +91,7 @@ void insertWithConcurrentReads(size_t NUM_ENTRIES) { dsp.push_back(dp->get_start_pid()); } size_t j = (rand() % (2 * (1 + i - last_i))) + last_i; - + if(j >= key_arr.size()) { j = key_arr.size()-1; } bool found = 0; { DataPage::iterator it = dp->begin();