diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2016-03-03 16:04:17 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2016-03-03 16:04:17 +1100 |
commit | 9a19889494447752612aaae6d463cc2cd96338c8 (patch) | |
tree | bc804ceb0083312697d051ee56d91cb5cd0165de /dist | |
parent | fe30aacbafb4ec37d47135bb6ab4c775a61edf7b (diff) | |
download | mongo-9a19889494447752612aaae6d463cc2cd96338c8.tar.gz |
WT-2381 Rewrite LSM metadata to fix dump / load.
Include all of the WT_SESSION::create config in the ordinary LSM
metadata so it is merged correctly into the dump header. Provide
an upgrade path for LSM metadata in the old format.
** Backwards bracking change for LSM: ** once metadata is upgraded
to the new format, LSM trees cannot be opened with older versions of
WiredTiger.
Diffstat (limited to 'dist')
-rw-r--r-- | dist/api_data.py | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/dist/api_data.py b/dist/api_data.py index 0eee515e851..e57146fc4a5 100644 --- a/dist/api_data.py +++ b/dist/api_data.py @@ -76,12 +76,12 @@ lsm_config = [ Config('bloom', 'true', r''' create bloom filters on LSM tree chunks as they are merged''', type='boolean'), - Config('bloom_config', '', r''' - config string used when creating Bloom filter files, passed - to WT_SESSION::create'''), Config('bloom_bit_count', '16', r''' the number of bits used per item for LSM bloom filters''', min='2', max='1000'), + Config('bloom_config', '', r''' + config string used when creating Bloom filter files, passed + to WT_SESSION::create'''), Config('bloom_hash_count', '8', r''' the number of hash values per item used for LSM bloom filters''', @@ -299,6 +299,15 @@ file_meta = file_config + [ the file version'''), ] +lsm_meta = file_config + lsm_config + [ + Config('last', '', r''' + the last allocated chunk ID'''), + Config('chunks', '', r''' + active chunks in the LSM tree'''), + Config('old_chunks', '', r''' + obsolete chunks in the LSM tree'''), +] + table_only_config = [ Config('colgroups', '', r''' comma-separated list of names of column groups. Each column @@ -737,12 +746,16 @@ cursor_runtime_config = [ ] methods = { -'file.meta' : Method(file_meta), - 'colgroup.meta' : Method(colgroup_meta), +'file.config' : Method(file_config), + +'file.meta' : Method(file_meta), + 'index.meta' : Method(index_meta), +'lsm.meta' : Method(lsm_meta), + 'table.meta' : Method(table_meta), 'WT_CURSOR.close' : Method([]), |