summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@wiredtiger.com>2011-08-31 09:51:35 +0000
committerKeith Bostic <keith.bostic@wiredtiger.com>2011-08-31 09:51:35 +0000
commit510152972c88a0e5ba5aafa753fc42843a417519 (patch)
tree1ed75c915b32768b9d0105a86a15b63715a03def
parentf7f5855ff4372ea56d8883dcb7ce7810e3ad9ac7 (diff)
downloadmongo-510152972c88a0e5ba5aafa753fc42843a417519.tar.gz
Display the record number for variable-length column-store entries.
--HG-- extra : rebase_source : eb27336ef457665d9b26e56be16ba2d0cd0dcc64
-rw-r--r--src/btree/bt_debug.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/btree/bt_debug.c b/src/btree/bt_debug.c
index 1673a5f3fb2..8d956eec52f 100644
--- a/src/btree/bt_debug.c
+++ b/src/btree/bt_debug.c
@@ -487,26 +487,27 @@ __debug_page_col_var(WT_DBG *ds, WT_PAGE *page)
WT_CELL_UNPACK *unpack, _unpack;
WT_COL *cip;
WT_INSERT_HEAD *inshead;
+ uint64_t recno, rle;
uint32_t i;
char tag[64];
unpack = &_unpack;
+ recno = page->u.col_leaf.recno;
WT_COL_FOREACH(page, cip, i) {
- tag[0] = 'V';
- tag[1] = '\0';
- if ((cell = WT_COL_PTR(page, cip)) == NULL)
+ if ((cell = WT_COL_PTR(page, cip)) == NULL) {
unpack = NULL;
- else {
+ rle = 1;
+ } else {
__wt_cell_unpack(cell, unpack);
- if (unpack->rle > 1)
- snprintf(tag,
- sizeof(tag), "V %" PRIu64, unpack->rle);
+ rle = unpack->rle;
}
+ snprintf(tag, sizeof(tag), "%" PRIu64 " %" PRIu64, recno, rle);
WT_RET(__debug_cell_data(ds, tag, unpack));
if ((inshead = WT_COL_INSERT(page, cip)) != NULL)
__debug_col_insert(ds, inshead, 0);
+ recno += rle;
}
return (0);
}