fix array-out-of-bounds bug in unit test
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@1521 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
parent
a6a0ce3f54
commit
83fe4b7703
1 changed files with 1 additions and 1 deletions
|
@ -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<datatuple>::iterator it = dp->begin();
|
||||
|
|
Loading…
Reference in a new issue