Commit Graph

21 Commits

Author SHA1 Message Date
Keith Bostic
344a714c3d Upgrade copyright notices from 2015 to 2016. 2016-01-01 16:37:39 -05:00
Keith Bostic
1f9098871a Copyright notices: add MongoDB, update to 2015. 2015-01-04 14:07:56 -05:00
Michael Cahill
aa5452e0c1 Add WT_COLLATOR::customize, allowing collators to be customized for specific data sources, or with application-managed metadata. 2014-08-15 18:02:25 +10:00
Keith Bostic
fdc63e5ea0 Minor code shuffle to make the flow a little more obvious. 2014-06-04 20:02:15 -04:00
Keith Bostic
3c480ff238 We document collators must return -1, 0, 1, rewrite the reverse collator
to translate byte differences into those values.
2014-06-04 10:52:21 -04:00
Keith Bostic
04d89a151b Run the "standard" extensions through the style checks, mostly add a
bunch of function header comments.

Change the compression source files to all have roughly identical
patterns.
2014-05-10 09:47:26 -04:00
Keith Bostic
5b509b7220 Update copyright notices for 2014.
Move lang/java and lang/python into the public domain.
2014-01-07 10:30:12 -05:00
Keith Bostic
3b88aa616e Add handle.terminate methods to WT_COLLATOR, WT_COMPRESSOR and
WT_DATA_SOURCE handles, called when the handle is discarded,
intended to allow general cleanup when the database is closed.

Re-work the BDB KVS and Memrata support to handle multiple open
databases, that is, get rid of all of the globals.
2013-05-07 11:50:12 -04:00
Michael Cahill
9a74a794a7 Change the extension function names to "init" and "terminate" so that API changes are caught at compile time. 2013-04-19 17:11:21 +10:00
Keith Bostic
3f5f248803 Add an extension "unload" entry point, configured with "unload" and with
a default of wiredtiger_extension_unload.

Rename "entry" load extension entry point to be "load", rename the default
from wiredtiger_extension_init to wiredtiger_extension_load, to match.
2013-04-18 08:44:08 -04:00
Michael Cahill
1123a185e7 Use an opaque type for config arguments passed to callbacks, rather than void *. 2013-04-18 16:51:20 +10:00
Keith Bostic
221d66e8a0 Change the extension entry point signature to take a (void *config)
instead of a const char *config, and pass in a cfg[], that way the
entry point function can use WT_EXTENSION_API::config to parse the
configuration.
2013-04-17 11:15:00 -04:00
Keith Bostic
08c982ad15 Replace wiredtiger_extension_api() with WT_CONNECTION.get_extension_api.
Pass the wiredtiger_extension_init function a (WT_CONNECTION *) instead
of a (WT_SESSION *, WT_EXTENSION_API) pair.
2013-04-17 11:02:54 -04:00
Keith Bostic
03c75c0561 Remove the wiredtiger_XXX #defines for the extension API, always use the
WT_EXTENSION_API handle instead.
2013-04-10 10:34:50 -04:00
Keith Bostic
9889288775 Make WiredTiger extension functions available to linked-in modules via
a new function wiredtiger_extension_api(WT_EXTENSION_API **pp).

Write some WT_EXTENSION_API documentation.

Remove WT_SESSION::msg_printf, add a new msg_printf extension function
instead, convert test/format to use it.

Quit using __UNUSED in the extension code, use explicit (void) casting,
it's cleaner.
2013-04-09 13:12:36 -04:00
Keith Bostic
963d37a4e6 Update copyright notice to 2013. 2013-01-01 09:45:50 +00:00
Keith Bostic
7a3b1353f0 We're sending a mixed message -- remove the copyright notices from files
where we've placed our content in the public domain.
2012-08-15 17:46:54 +00:00
Keith Bostic
c3a3d51b05 lint 2012-07-05 10:46:32 +00:00
Keith Bostic
e45910821f whitespace 2012-04-23 19:57:22 +00:00
Keith Bostic
2354a335ed Add public-domain copyright notices to the extension code, someone may
want to copy them to do their own extensions.
2012-03-12 12:17:57 -04:00
Michael Cahill
6a3cec072f Add a collator extension, include in test/format testing.
closes #118
2011-10-07 16:42:40 +11:00