summaryrefslogtreecommitdiff
path: root/src/lsm/lsm_merge.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-12-15 09:06:04 -0500
committerKeith Bostic <keith@wiredtiger.com>2014-12-15 09:06:04 -0500
commite1cd4d5eba5c3b9f8997d363e3aef0b4b5730fed (patch)
tree39f87b7443e744889fecb462bb42bb12bbfc6210 /src/lsm/lsm_merge.c
parent60366cf06906a23882e310b893c12f925517982c (diff)
downloadmongo-e1cd4d5eba5c3b9f8997d363e3aef0b4b5730fed.tar.gz
Most WiredTiger calloc calls are to allocate a single structure,
create the macro __wt_calloc_one that doesn't take a count or a sizeof.
Diffstat (limited to 'src/lsm/lsm_merge.c')
-rw-r--r--src/lsm/lsm_merge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lsm/lsm_merge.c b/src/lsm/lsm_merge.c
index 9ed605724ce..8989e979a44 100644
--- a/src/lsm/lsm_merge.c
+++ b/src/lsm/lsm_merge.c
@@ -311,7 +311,7 @@ __wt_lsm_merge(WT_SESSION_IMPL *session, WT_LSM_TREE *lsm_tree, u_int id)
lsm_tree->name, verb, lsm_tree->chunk[verb]->id));
}
- WT_ERR(__wt_calloc_def(session, 1, &chunk));
+ WT_ERR(__wt_calloc_one(session, &chunk));
created_chunk = 1;
chunk->id = dest_id;