summaryrefslogtreecommitdiff
path: root/src/schema/schema_plan.c
Commit message (Collapse)AuthorAgeFilesLines
* WT-2888 Switch functions to return void where possible (#3019)Keith Bostic2016-09-061-8/+8
| | | Some functions return an error code even though they don't need to. That adds complexity to our code. Switch to returning a void.
* WT-2471: review WiredTiger "int" printf formatsKeith Bostic2016-03-111-6/+6
|
* Upgrade copyright notices from 2015 to 2016.Keith Bostic2016-01-011-1/+1
|
* Boolean conversion pass over schema.Keith Bostic2015-09-241-16/+16
|
* Copyright notices: add MongoDB, update to 2015.Keith Bostic2015-01-041-0/+1
|
* Custom-extractor lint, whitespace, reference #1215.Keith Bostic2014-11-041-2/+1
|
* Only append primary key columns to the index key format once.Michael Cahill2014-10-221-0/+1
|
* Fix the extractor example, remove a debugging message.Michael Cahill2014-10-171-5/+1
| | | | | * * * warning: 64-bit implicit cast.
* More implementation of custom extractors: pass the number of columns ↵Michael Cahill2014-10-101-8/+15
| | | | calculated by index creation through to the open, use that to generate correct key formats and a plan that can extract the primary key.
* More implementation of the custom extractor API. Still working on ↵Michael Cahill2014-10-091-2/+13
| | | | | | generating plans and key formats between index creation and open. refs #1199
* Update copyright notices for 2014.Keith Bostic2014-01-071-1/+1
| | | | Move lang/java and lang/python into the public domain.
* Always initialize WT_PACK_VALUE before use.Michael Cahill2013-11-251-9/+3
|
* Clear WT_PACK_VALUE before calling __pack_next. Static analysis can't ↵Michael Cahill2013-11-221-0/+2
| | | | figure out that it isn't required.
* Merge branch 'develop' into fine-grained-durabilityMichael Cahill2013-11-151-4/+8
|\
| * __wt_config_next() has lots of possible errors, check for not-foundKeith Bostic2013-11-141-4/+8
| | | | | | | | at the end of the loop.
* | Create a Python pass for source code style checking (to eventually replace ↵Michael Cahill2013-11-051-0/+8
|/ | | | s_style).
* Add a condition variable to signal when LSM checkpoints should start, rather ↵Michael Cahill2013-03-201-13/+9
| | | | than sleeping for a fixed amount of time. While in this code, cleanup places that set session->btree in order to make a function call.
* Update copyright notice to 2013.Keith Bostic2013-01-011-1/+1
|
* Fix a bug populating column groups with complex schema.Michael Cahill2012-12-111-6/+6
| | | | closes #409
* Revert one of the schema plan logic changes: they weren't necessary and ↵Michael Cahill2012-12-101-6/+6
| | | | introduced bugs.
* Fix a schema bug where value columns appearing in multiple column groups ↵Michael Cahill2012-12-101-7/+11
| | | | would not always be populated correctly. Back out the last attempted fix.
* More schema layer cleanup:Michael Cahill2012-12-101-5/+14
| | | | | | | * allow empty column lists in projection cursors; * do another pass over the schema documentation and example code; * add docs for the variable-length argument lists for WT_CURSOR:{g,s}et_{key,value}. closes #409
* Fix compiler warning.Alex Gorrod2012-12-101-2/+1
| | | | | ../src/schema/schema_plan.c:299:6: error: variable 'empty' set but not used [-Werror=unused-but-set-variable]
* Fix a segfault cleaning up a bad index cursor open.Michael Cahill2012-12-101-2/+6
| | | | | Improve the error message if no columns are specified to a projection. closes #409.
* Use UINT_MAX instead of -1U, it makes lint happy.Keith Bostic2012-11-301-3/+3
|
* Fix warnings from "gcc -Wsign-conversion". Mostly this involved changing ↵Michael Cahill2012-11-301-10/+11
| | | | loop counters to unsigned, but there were also some cases where arithmetic mixed signed and unsigned expressions.
* Whitespace cleanups, no semantic changes.Keith Bostic2012-08-071-1/+1
|
* Don't repeatedly look up btree handles for schema operations.Michael Cahill2012-07-311-16/+6
| | | | | | | | | | | | | | | | | | When the schema layer was originally written, tables kept a list of btree handles for column groups and indices, and walked those lists directly to get the settings. Then to support operations like drop, btree handles were no longer referenced directly from the schema layer, leading to multiple handle lookups for some operations. This change goes closer to the original version: the schema-level configuration has been removed from WT_BTREE and stored in the table handle. This leads to far fewer handle lookups, and makes operations on complex tables much more efficient. This is also one step towards layering tables on top of data sources other than files, including LSM trees. refs #168
* Fix some functions to work with the new check for returns after "goto err".Michael Cahill2012-05-141-1/+1
|
* Lint (probably not a bug, but it's safer to initialize cgtree).Keith Bostic2012-05-101-1/+1
|
* Don't cache btree handles in the schema layer: always look up handles by ↵Michael Cahill2012-05-041-13/+27
| | | | name (usually from the session cache, so this isn't as bad as it sounds).
* Move the "close_any_btree" logic into conn_btree.cMichael Cahill2012-05-041-1/+2
| | | | closes #156
* Replace local "ret" declarations with WT_DECL_RET.Keith Bostic2012-04-261-4/+8
|
* Fixes to make test_schema02 pass. Much more careful checking and cleanup ↵Michael Cahill2012-02-021-9/+43
| | | | | | during complex object creation. Check that the number of named columns matches the key and value formats. Use the schema tracking code to cleanup after errors. Detach btree handles from tables when closing. refs #131
* Fix uninitialized warnings with GCC 4.6.Michael Cahill2012-01-311-0/+2
|
* Fix uninitialized warnings with GCC 4.2.Michael Cahill2012-01-311-0/+4
|
* Add WT_CURSOR::uri containing the cursor source URI, primarily in support of ↵Michael Cahill2012-01-311-1/+1
| | | | | | WT_CURSOR::equals. closes #153
* Merge WT_BUF into WT_ITEM.Michael Cahill2012-01-231-3/+3
|
* Update copyright notices to 2012.Keith Bostic2012-01-221-3/+3
| | | | | | | | | | | | Change the copyright check script to always use the current year. Change the example code copyright notices to document them as freeware, anybody using WiredTiger example code is free to use it in any way they choose, including commercially, WiredTiger claims no rights in such a copy. Minor re-ordering of the standard copyright notice so the preamble is always the copyright notice itself, not the mention of the LICENSE file.
* Add the WT_RET_MSG and WT_ERR_MSG macros that output a message and then return.Keith Bostic2012-01-021-11/+8
| | | | | --HG-- rename : src/include/debug.h => src/include/error.h
* Rename __wt_buf_sprintf/__wt_buf_sprintf_append to __wt_buf_fmt andKeith Bostic2011-10-101-11/+9
| | | | | | | | __wt_buf_catfmt, discard a couple of __wt_buf_init calls that aren't necessary. --HG-- extra : rebase_source : cf5b101e7b1975f31d8fc7cce99b7de9fe33a72e
* Split __wt_buf_sprintf into two functions: __wt_buf_sprintf that sets theKeith Bostic2011-10-101-14/+14
| | | | | | | | buffer to a formatted string, and __wt_buf_sprintf_append that appends a formatted string to the existing buffer contents. --HG-- extra : rebase_source : d0269e698a9d0cddd4aa10436314f765857acc02
* Restrict visible columns in index cursors, hide primary key columns.Michael Cahill2011-09-261-0/+25
| | | | closes #78
* lint:Michael Cahill2011-09-141-0/+1
| | | | | - "break" indented at the wrong level - Symbol 'current_coltype' (line 135) not initialized
* Cleanup some formatting / spelling that crept in.Michael Cahill2011-09-021-3/+3
|
* When calculating projection plans for complex tables, scan key columns as ↵Michael Cahill2011-09-021-24/+46
| | | | well as value columns in each column group.
* Finish implementation of indices -- populate them as the primary is updated, ↵Michael Cahill2011-08-161-14/+38
| | | | allow searches on index cursors.
* unused variables.Keith Bostic2011-08-191-8/+6
|
* Include all .i files from wt_internal.h.Michael Cahill2011-07-141-2/+0
|
* Fix schema handling for simple tables: keep the common configuration in the ↵Michael Cahill2011-07-091-0/+3
| | | | WT_TABLE struct to avoid special cases.