Commit 2f28431c authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Fill in the primeidx

git-svn-id: file:///svn/tokudb@130 c7de825b-a66e-492c-adef-691d508d4ae1
parent 90c49bc0
......@@ -59,7 +59,9 @@ int toku_hash_rehash_everything (HASHTABLE tab, unsigned int primeindexdelta) {
unsigned int newarraysize = get_prime(newprimeindex);
HASHELT *newarray = toku_calloc(newarraysize, sizeof(*tab->array));
unsigned int i;
//printf("%s:%d newarraysize=%d\n", __FILE__, __LINE__, newarraysize);
assert(newarray!=0);
tab->primeidx=newprimeindex;
for (i=0; i<newarraysize; i++) newarray[i]=0;
for (i=0; i<tab->arraysize; i++) {
HASHELT he;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment