wiredtiger/wiredtiger.github.com — Issue #46: collapse is setting values incorrectly
Author: wiredtiger
Created: 2012-01-31 15:30:01+00:00
State: open

Michael, I turned off huffman_data/huffman_key in my config file, and things starting failing with an illegal huffman value. I think it's the collapse functionality -- here's a gdb run. Right before calling collapse, huffman_key/huffman_value aren't set, and after collapse, the return string has them set to '1'. It looks like anything of the form "xxx=" comes back as "xxx=1".

$23 = {
0x818e764 "allocation_size=512B,columns=,colgroup.name=,exclusive=false,huffman_key=,huffman_value=,index.name=,intl_node_max=2KB,intl_node_min=2KB,key_format=u,leaf_node_max=1MB,leaf_node_min=32KB,runlength_enc"...,
0xbfbfe9a0 "key_format=u,intl_node_min=8192,intl_node_max=8192,leaf_node_min=16384,leaf_node_max=16384", 0x0}
(gdb) n
148 WT_RET(__wt_btree_create(session, name, collapse));
(gdb) p collapse
$24 = 0x2858cd80 "allocation_size=512B,columns=1,colgroup.name=1,exclusive=false,huffman_key=1,huffman_value=1,index.name=1,intl_node_max=8192,intl_node_min=8192,key_format=u,leaf_node_max=16384,leaf_node_min=16384,run"...
(gdb)