diff options
author | Keith Bostic <keith@wiredtiger.com> | 2012-10-25 09:15:06 +0000 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2012-10-25 09:15:06 +0000 |
commit | c4086362a1dbaf5b90660452a93e3e3af04d99c6 (patch) | |
tree | eb9e0e4d2fb78c522557fc30ff482f34b2125245 | |
parent | ba8cd06a784baba3b55d7b7272c6a759188e2793 (diff) | |
download | mongo-c4086362a1dbaf5b90660452a93e3e3af04d99c6.tar.gz |
Unreachable code at token 'return'
-rw-r--r-- | src/btree/rec_write.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/btree/rec_write.c b/src/btree/rec_write.c index c3d04b7f765..dbb29ea9aa6 100644 --- a/src/btree/rec_write.c +++ b/src/btree/rec_write.c @@ -1492,8 +1492,8 @@ __wt_rec_col_fix_bulk_insert(WT_CURSOR_BULK *cbulk) WT_CURSOR *cursor; WT_RECONCILE *r; WT_SESSION_IMPL *session; - const uint8_t *data; uint32_t entries, offset, page_entries, page_size; + const uint8_t *data; session = (WT_SESSION_IMPL *)cbulk->cbt.iface.session; r = cbulk->reconcile; @@ -1501,11 +1501,9 @@ __wt_rec_col_fix_bulk_insert(WT_CURSOR_BULK *cbulk) cursor = &cbulk->cbt.iface; if (cbulk->bitmap) { - if (((r->recno - 1) * btree->bitcnt) & 0x7) { + if (((r->recno - 1) * btree->bitcnt) & 0x7) WT_RET_MSG(session, EINVAL, "Bulk bitmap load not aligned on a byte boundary"); - return (EINVAL); - } for (data = cursor->value.data, entries = cursor->value.size; entries > 0; entries -= page_entries, data += page_size) { |