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:
sears 2010-12-17 21:15:26 +00:00
parent a6a0ce3f54
commit 83fe4b7703

View file

@ -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();