Commit 09975d1a authored by Rich Prohaska's avatar Rich Prohaska

allocate an array of pointers to ctpair's rather than an

array of ctpair's



git-svn-id: file:///svn/tokudb@105 c7de825b-a66e-492c-adef-691d508d4ae1
parent 7535abf3
......@@ -57,7 +57,7 @@ int create_cachetable (CACHETABLE *result, int n_entries) {
int i;
t->n_in_table = 0;
t->table_size = n_entries;
t->table = toku_calloc(t->table_size, sizeof(struct ctpair));
MALLOC_N(t->table_size, t->table);
assert(t->table);
t->head = t->tail = 0;
for (i=0; i<t->table_size; i++) {
......
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