From 904da9860363ac0f1d75cb8b40a66bdd83b60b7e Mon Sep 17 00:00:00 2001
From: Rich Prohaska <prohaska@tokutek.com>
Date: Fri, 10 Aug 2007 21:01:24 +0000
Subject: [PATCH] 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
---
 newbrt/cachetable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newbrt/cachetable.c b/newbrt/cachetable.c
index 628d2a32c2c..77060c572da 100644
--- a/newbrt/cachetable.c
+++ b/newbrt/cachetable.c
@@ -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++) {
-- 
2.30.9