summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-12-21 20:47:52 -0500
committerKeith Bostic <keith@wiredtiger.com>2014-12-21 20:48:59 -0500
commit864f3495721b1311b49df19ee241bfca9adf0863 (patch)
tree7cb94bde0db0888f282a853bcaf64ffb6f8defb7
parent28d35d38bf73c5576056fa934a2b44fb12c7e4fe (diff)
downloadmongo-864f3495721b1311b49df19ee241bfca9adf0863.tar.gz
Make the cache bytes-written and bytes-read match, both should
ignore compression. Reference #1505.
-rw-r--r--src/btree/bt_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/btree/bt_io.c b/src/btree/bt_io.c
index 8ab5a6a30c0..9d154311a8c 100644
--- a/src/btree/bt_io.c
+++ b/src/btree/bt_io.c
@@ -295,8 +295,8 @@ __wt_bt_write(WT_SESSION_IMPL *session, WT_ITEM *buf,
WT_STAT_FAST_CONN_INCR(session, cache_write);
WT_STAT_FAST_DATA_INCR(session, cache_write);
- WT_STAT_FAST_CONN_INCRV(session, cache_bytes_write, ip->size);
- WT_STAT_FAST_DATA_INCRV(session, cache_bytes_write, ip->size);
+ WT_STAT_FAST_CONN_INCRV(session, cache_bytes_write, dsk->mem_size);
+ WT_STAT_FAST_DATA_INCRV(session, cache_bytes_write, dsk->mem_size);
err: __wt_scr_free(&tmp);
return (ret);