diff options
Diffstat (limited to 'src/lsm/lsm_tree.c')
-rw-r--r-- | src/lsm/lsm_tree.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lsm/lsm_tree.c b/src/lsm/lsm_tree.c index d3979da0da1..5cff7ccfae3 100644 --- a/src/lsm/lsm_tree.c +++ b/src/lsm/lsm_tree.c @@ -206,6 +206,7 @@ int __wt_lsm_tree_set_chunk_size( WT_SESSION_IMPL *session, WT_LSM_CHUNK *chunk) { + WT_DECL_RET; wt_off_t size; const char *filename; @@ -213,7 +214,9 @@ __wt_lsm_tree_set_chunk_size( if (!WT_PREFIX_SKIP(filename, "file:")) WT_RET_MSG(session, EINVAL, "Expected a 'file:' URI: %s", chunk->uri); - WT_RET(__wt_filesize_name(session, filename, &size)); + ret = __wt_filesize_name(session, filename, &size); + if (ret != 0) + WT_RET_MSG(session, ret, "%s: file size", filename); chunk->size = (uint64_t)size; |