diff options
author | Keith Bostic <keith.bostic@wiredtiger.com> | 2011-05-29 11:13:28 -0400 |
---|---|---|
committer | Keith Bostic <keith.bostic@wiredtiger.com> | 2011-05-29 11:13:28 -0400 |
commit | 31e9d2ba05fbfcd8a9c3fc371969afddfbcaa165 (patch) | |
tree | 09c5750bf128bcd0ee2562bdd6db17ecd5691550 /src/btree/bt_ovfl.c | |
parent | ffaf650363548f917e4313e3e30649fbf2901ae9 (diff) | |
download | mongo-31e9d2ba05fbfcd8a9c3fc371969afddfbcaa165.tar.gz |
Add a new buffer-grow function __wt_buf_grow, to grow a buffer in place
(without resetting the data/size pair).
Rename __wt_buf_setsize to be __wt_buf_initsize, add __wt_buf_init
as the companion function that does an init, vs. init plus setting the size.
Diffstat (limited to 'src/btree/bt_ovfl.c')
-rw-r--r-- | src/btree/bt_ovfl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree/bt_ovfl.c b/src/btree/bt_ovfl.c index 4731b2d59e4..a0b793b1c74 100644 --- a/src/btree/bt_ovfl.c +++ b/src/btree/bt_ovfl.c @@ -51,7 +51,7 @@ __wt_ovfl_in(SESSION *session, WT_OFF *ovfl, WT_BUF *store) * * Re-allocate memory as necessary to hold the overflow pages. */ - WT_RET(__wt_buf_setsize(session, store, ovfl->size)); + WT_RET(__wt_buf_initsize(session, store, ovfl->size)); /* Read the page. */ WT_RET(__wt_disk_read(session, store->mem, ovfl->addr, ovfl->size)); |