summaryrefslogtreecommitdiff
path: root/src/block
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@mongodb.com>2015-11-03 10:28:54 -0500
committerAlex Gorrod <alexg@wiredtiger.com>2016-01-11 06:38:10 +1100
commitedf9dba6bb6861164c430c156473a5be805bb819 (patch)
treeea949b819a5f9fc34f714ce51a8d631e3c46f4fc /src/block
parentd72b3bd9259da4d53a32a8f73bd93bf8ef9129e9 (diff)
downloadmongo-edf9dba6bb6861164c430c156473a5be805bb819.tar.gz
Merge pull request #2287 from wiredtiger/wt-2196-keith
(cherry picked from commit a887cb2) WT-2196: Backport to 3.0. Fix size-only statistics when there are LSM tables.
Diffstat (limited to 'src/block')
-rw-r--r--src/block/block_open.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/block/block_open.c b/src/block/block_open.c
index 8b7d4beeac8..5493d9a2a4c 100644
--- a/src/block/block_open.c
+++ b/src/block/block_open.c
@@ -424,13 +424,9 @@ int
__wt_block_manager_size(
WT_SESSION_IMPL *session, const char *filename, WT_DSRC_STATS *stats)
{
- WT_DECL_RET;
wt_off_t filesize;
- ret = __wt_filesize_name(session, filename, &filesize);
- if (ret != 0)
- WT_RET_MSG(session, ret, "%s: file size", filename);
-
+ WT_RET(__wt_filesize_name(session, filename, false, &filesize));
WT_STAT_SET(stats, block_size, filesize);
return (0);