diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-04-24 09:34:28 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-04-24 09:34:28 -0400 |
commit | b95a8743db255f59faf8e9854313e6115fe826c5 (patch) | |
tree | 513702c3b2302b7458b9b1d2326db9d423af06aa | |
parent | fb875125b76c073a493e76bd1c7a6018ee9bd6c6 (diff) | |
download | mongo-b95a8743db255f59faf8e9854313e6115fe826c5.tar.gz |
unused variable.
-rw-r--r-- | src/btree/bt_evict.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/btree/bt_evict.c b/src/btree/bt_evict.c index e0d4232e3c1..ded084cdc92 100644 --- a/src/btree/bt_evict.c +++ b/src/btree/bt_evict.c @@ -1228,7 +1228,6 @@ __wt_cache_dump(WT_SESSION_IMPL *session) WT_BTREE *btree; WT_CONNECTION_IMPL *conn; WT_DATA_HANDLE *dhandle; - WT_DECL_RET; WT_PAGE *page; uint64_t file_bytes, file_dirty, file_pages, total_bytes; @@ -1249,8 +1248,7 @@ __wt_cache_dump(WT_SESSION_IMPL *session) file_bytes = file_dirty = file_pages = 0; page = NULL; session->dhandle = dhandle; - while ((ret = - __wt_tree_walk(session, &page, WT_TREE_CACHE)) == 0 && + while (__wt_tree_walk(session, &page, WT_TREE_CACHE) == 0 && page != NULL) { ++file_pages; file_bytes += page->memory_footprint; |