diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2015-02-09 14:07:57 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2015-02-09 14:07:57 +1100 |
commit | c63ba34c915d95c156aaf6c47a04fe6d361b91ad (patch) | |
tree | 6007f87807ce9665f23e16bbfae398e6b80dee63 /src/reconcile | |
parent | 4802b4b3288e5b83c7a133329188e485b3bfe4d1 (diff) | |
download | mongo-c63ba34c915d95c156aaf6c47a04fe6d361b91ad.tar.gz |
Don't double-count the on-disk header size when setting split boundaries.
refs #1655
Diffstat (limited to 'src/reconcile')
-rw-r--r-- | src/reconcile/rec_write.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/reconcile/rec_write.c b/src/reconcile/rec_write.c index 2670c73b553..8bdc404e7c9 100644 --- a/src/reconcile/rec_write.c +++ b/src/reconcile/rec_write.c @@ -1988,13 +1988,10 @@ __rec_split(WT_SESSION_IMPL *session, WT_RECONCILE *r, size_t next_len) * add whatever space remains in this page. */ if (inuse + r->split_size <= r->page_size) - r->space_avail = - r->split_size - WT_PAGE_HEADER_BYTE_SIZE(btree); + r->space_avail = r->split_size; else { - WT_ASSERT(session, r->page_size >= - (WT_PAGE_HEADER_BYTE_SIZE(btree) + inuse)); - r->space_avail = r->page_size - - (WT_PAGE_HEADER_BYTE_SIZE(btree) + inuse); + WT_ASSERT(session, r->page_size >= inuse); + r->space_avail = r->page_size - inuse; /* There are no further boundary points. */ r->bnd_state = SPLIT_MAX; |