summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/btree/bt_stat.c
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2019-04-16 14:36:51 +1000
committerLuke Chen <luke.chen@mongodb.com>2019-04-16 14:45:56 +1000
commita654dcf592ea7ed65426a0de96b4079ff4fc6716 (patch)
treea5256edad1bb219e6af72fd7e7525f58e235a307 /src/third_party/wiredtiger/src/btree/bt_stat.c
parent19b622ebfb42a525f38e278c09f440eb47b12f1e (diff)
downloadmongo-a654dcf592ea7ed65426a0de96b4079ff4fc6716.tar.gz
Import wiredtiger: 9416282c42d40328dfb7ff0f28831f639f98d3cb from branch mongodb-4.2
ref: 1768d66613..9416282c42 for: 4.1.11 WT-4317 Read checksum error in test_wt4156_metadata_salvage WT-4579 Track the newest durable timestamp for each page WT-4585 Add WT_WITH_HOTBACKUP_LOCK macro WT-4598 Enable the assertion that the durable_timestamp is newer than or equals the commit timestamp. WT-4640 Remove round_to_oldest in favour of roundup_timestamps WT-4695 Python3: allow most tests to run with Python3 with small changes WT-4696 Python3: change dist scripts to run under Python3 WT-4698 Python3: fix modify related tests WT-4699 Python3: fix test_jsondump02.py WT-4700 Python3: run with same source as Python2 WT-4703 Extend test/checkpoint to do removes and online checking WT-4704 Add statistic tracking oldest active read timestamp WT-4705 column-store no longer needs to handle WT_COL page offsets of 0 WT-4707 Failure in verifying cells with copied values WT-4708 Coverity reported copy-paste error in WiredTiger error message WT-4711 Python formatting errors reported while running "s_all" WT-4714 Use the durable timestamp to determine if a page should stay dirty WT-4724 Syntax error in wtperf_ckpt.sh when running 'dash' as default shell
Diffstat (limited to 'src/third_party/wiredtiger/src/btree/bt_stat.c')
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_stat.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/third_party/wiredtiger/src/btree/bt_stat.c b/src/third_party/wiredtiger/src/btree/bt_stat.c
index c201d9af73a..976a771a233 100644
--- a/src/third_party/wiredtiger/src/btree/bt_stat.c
+++ b/src/third_party/wiredtiger/src/btree/bt_stat.c
@@ -160,21 +160,18 @@ __stat_page_col_var(
* we see.
*/
WT_COL_FOREACH(page, cip, i) {
- if ((cell = WT_COL_PTR(page, cip)) == NULL) {
+ cell = WT_COL_PTR(page, cip);
+ __wt_cell_unpack(session, page, cell, unpack);
+ if (unpack->type == WT_CELL_DEL) {
orig_deleted = true;
- ++deleted_cnt;
+ deleted_cnt += __wt_cell_rle(unpack);
} else {
orig_deleted = false;
- __wt_cell_unpack(session, page, cell, unpack);
- if (unpack->type == WT_CELL_DEL)
- orig_deleted = true;
- else {
- entry_cnt += __wt_cell_rle(unpack);
- rle_cnt += __wt_cell_rle(unpack) - 1;
- }
- if (unpack->ovfl)
- ++ovfl_cnt;
+ entry_cnt += __wt_cell_rle(unpack);
}
+ rle_cnt += __wt_cell_rle(unpack) - 1;
+ if (unpack->ovfl)
+ ++ovfl_cnt;
/*
* Walk the insert list, checking for changes. For each insert