diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-03-07 17:29:22 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-03-07 17:29:22 -0500 |
commit | 0f2a950d67a7c0cb13b9d021735ea3069c06421f (patch) | |
tree | 5ba7b0bd931ae6e4338869286af6f4ce85c5f297 | |
parent | 53d506adda74f5c5d92c9b1ab0dd57ec7c606fe3 (diff) | |
download | mongo-0f2a950d67a7c0cb13b9d021735ea3069c06421f.tar.gz |
Use the maxpagesize, not the allocsize, and be consistent with use of
the variables (no change, but hopefully easier to understand the next
time I read through it).
-rw-r--r-- | src/btree/bt_handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree/bt_handle.c b/src/btree/bt_handle.c index e46ec867f2b..5954c917d54 100644 --- a/src/btree/bt_handle.c +++ b/src/btree/bt_handle.c @@ -669,7 +669,7 @@ __wt_split_page_size(WT_BTREE *btree, uint32_t maxpagesize) * unit, use a percentage of the maximum page size). */ if (split_size == btree->allocsize) - split_size = (btree->allocsize * btree->split_pct) / 100; + split_size = (a * btree->split_pct) / 100; return (split_size); } |