summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/reconcile/rec_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/reconcile/rec_write.c')
-rw-r--r--src/third_party/wiredtiger/src/reconcile/rec_write.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/src/reconcile/rec_write.c b/src/third_party/wiredtiger/src/reconcile/rec_write.c
index 5a78f0df88d..f7eeada4c8e 100644
--- a/src/third_party/wiredtiger/src/reconcile/rec_write.c
+++ b/src/third_party/wiredtiger/src/reconcile/rec_write.c
@@ -500,7 +500,8 @@ __rec_root_write(WT_SESSION_IMPL *session, WT_PAGE *page, uint32_t flags)
return (0);
case WT_PM_REC_MULTIBLOCK: /* Multiple blocks */
break;
- WT_ILLEGAL_VALUE(session, mod->rec_result);
+ default:
+ return (__wt_illegal_value(session, mod->rec_result));
}
__wt_verbose(session, WT_VERB_SPLIT,
@@ -1401,7 +1402,8 @@ __wt_rec_split(WT_SESSION_IMPL *session, WT_RECONCILE *r, size_t next_len)
r->min_space_avail =
r->min_split_size - WT_PAGE_HEADER_BYTE_SIZE(btree);
-done: /*
+done:
+ /*
* Overflow values can be larger than the maximum page size but still be
* "on-page". If the next key/value pair is larger than space available
* after a split has happened (in other words, larger than the maximum
@@ -2023,7 +2025,8 @@ __rec_split_write(WT_SESSION_IMPL *session, WT_RECONCILE *r,
case WT_PAGE_ROW_INT:
multi->addr.type = WT_ADDR_INT;
break;
- WT_ILLEGAL_VALUE(session, page->type);
+ default:
+ return (__wt_illegal_value(session, page->type));
}
multi->size = WT_STORE_SIZE(chunk->image.size);
multi->checksum = 0;
@@ -2412,7 +2415,8 @@ __rec_write_wrapup(WT_SESSION_IMPL *session, WT_RECONCILE *r, WT_PAGE *page)
mod->mod_replace.size = 0;
__wt_free(session, mod->mod_disk_image);
break;
- WT_ILLEGAL_VALUE(session, mod->rec_result);
+ default:
+ return (__wt_illegal_value(session, mod->rec_result));
}
/* Reset the reconciliation state. */