Commit Graph

64 Commits

Author SHA1 Message Date
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
Michael Cahill
a81ef11988 Merge branch 'develop' into fine-grained-durability
Conflicts:
	dist/api_data.py
	dist/flags.py
	src/include/flags.h
	src/include/txn.h
	src/include/txn.i
	test/thread/t.c
2013-11-08 10:20:16 +11:00
Keith Bostic
9be66e1d26 Rework WT_UNUSED/WT_UNUSED_RET slightly: move GNUC macros out of misc.h
into their own include file "gcc.h", change the test programs to include
and use the definitions from that file.
2013-11-06 09:18:50 -05:00
Michael Cahill
56d82a4eb9 Merge branch 'develop' into fine-grained-durability
Conflicts:
	dist/stat_data.py
	src/include/wiredtiger.in
	src/support/stat.c
	test/salvage/salvage.c
	test/thread/t.c
2013-11-05 09:38:41 +11:00
Alex Gorrod
1e9c8b91d1 Fix compiler warnings with GCC 4.7.2 on Ubuntu. 2013-11-01 16:18:48 +11:00
Michael Cahill
9c70b206c0 Merge branch 'develop' into fine-grained-durability 2013-10-29 10:29:10 +11:00
Alex Gorrod
9e6fbc26a1 Merge branch 'develop' into java-auto-close 2013-10-25 09:34:43 +11:00
Michael Cahill
13ca7907d3 Merge branch 'develop' into fine-grained-durability
Conflicts:
	dist/s_define.list
2013-10-24 10:54:45 +11:00
Keith Bostic
a09b9b7ceb thread opens statistics cursors so we have to configure statistics in
the wiredtiger_open call.
2013-10-21 10:55:26 -04:00
Michael Cahill
6dfd4de7c8 When cleaning up after tests, remove the logs. 2013-08-29 22:37:46 +10:00
Alex Gorrod
3342b80ab8 Add a WT_SESSION handle to WT_EVENT_HANDLER callbacks.
Specifically added to handle_error, handle_message and handle_progress.
This change allows applications to match events to session handles.
2013-08-29 07:49:53 +00:00
Alex Gorrod
22214b382c Merge branch 'develop' into java-auto-close 2013-08-15 18:43:39 +10:00
Susan LoVerso
4da096c2a4 Merge branch 'develop' into logging
Conflicts:
	src/config/config_def.c
	src/include/flags.h
	src/include/wiredtiger.in
2013-06-17 10:12:18 -04:00
Susan LoVerso
fc0207419d Add log_print support to test/thread. 2013-06-05 15:38:28 -04:00
Keith Bostic
3fe757efec The test/thread program is using key numbers of 0, which is illegal,
replace (0 <= keyno <= nkeys - 1) with (1 <= keyno <= nkeys).
2013-05-24 21:24:37 -04:00
Alex Gorrod
cc563bdeae Add a stub callback for auto closed handles. Update handlers in tree. 2013-04-08 16:51:26 +10:00
Keith Bostic
963d37a4e6 Update copyright notice to 2013. 2013-01-01 09:45:50 +00:00
Keith Bostic
45c1e2a5a3 Move test program software into the public domain, if anyone wants to
cut-and-paste from it, that's fine with us.
2012-10-26 13:22:45 +00:00
Michael Cahill
e390725e68 s/WildTiger/WiredTiger/ 2012-10-17 17:33:00 +11:00
Michael Cahill
899d510f98 warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' 2012-10-03 18:18:43 +10:00
Michael Cahill
7136421ead On GCC spinlocks, yield after spinning for a while (default 1000 iterations).
Switch to using gettimeofday when timing operations: clock() is highly variable
when spinning.
2012-09-10 12:59:24 +10:00
Michael Cahill
33ceb77d42 Fix __wt_conn_btree_apply to acquire handles correctly,
pass WT_BTREE_SNAPSHOT_OP from checkpoint code.
2012-06-18 13:53:44 +10:00
Michael Cahill
08bd42abc2 Add test/fops and test/thread to "make check". 2012-06-01 22:52:34 +10:00
Keith Bostic
6aeca4a05c Now that test/fops is split out of the thread code, there's no need for
the error handler to test for ENOENT.
2012-05-28 11:33:03 +00:00
Keith Bostic
ca408b3b2d Split test/thread into two parts, test/thread and test/fops. 2012-05-28 10:59:45 +00:00
Keith Bostic
c4dfc3f4d2 Rework WT_EVENT_HANDLERs.
Change the WT_SESSION's WT_EVENT_HANDLER reference to be a real
structure, and copy values into it instead of simply pointing to the
user-specified structure.  The argument for using a reference is the
application can swap functions whenever it feels like it, the argument
against using a reference is that if the application allocates the
structure only long enough to call wiredtiger_open, we're going to drop
core.  We don't document that the structure needs to persist, and if the
application wants to swap functions, it can do it inside the function
it gives us, so using a real structure doesn't lose any functionality.
	Change the semantics of the event-handler error function (used
to return void, now returns int) and the progress function (used to
return int, now returns void).  Change the semantics of the erorr and
informational handlers so that if the handler returns failure, we
fallback to the default behavior.
	Document the event-handler parameters.
	Change the code so that a missing handler calls the default
handler function: that means a NULL event-handler structure does the
right thing, and eliminates the need for __wt_event_handler_default
and some initialization code in a few places, and the need to make
the default error and informational message handlers look like the
application-specified versions.
	Delete api/api_event.c, move the default informational and
error message handlers into support/err.c   Delete the default progress
message handler entirely, it didn't do anything.

	Delete include/progress.i  (The only function the file had was
the default progress handler function, __wt_progress, which is only used
by verify and salvage, the compiler can inline it if it wants.)  Moved
__wt_progress to support/err.c.
2012-05-04 14:38:50 +00:00
Keith Bostic
33c8736b59 lint 2012-05-03 22:14:42 +00:00
Keith Bostic
2de95257d2 lint 2012-05-03 22:08:54 +00:00
Keith Bostic
f94b7ea1e3 Add support for file operations to the test/thread program. 2012-05-03 21:57:43 +00:00
Keith Bostic
48e4a7ffed Make the local clean targets all the same: remove the WiredTiger run
files, anything named with leading underscores, and core files.
2012-04-23 13:43:21 +00:00
Keith Bostic
e5a7c5a757 lint 2012-03-15 17:59:31 +00:00
Michael Cahill
5d1b53798d test/thread/run.c:129: warning: unused variable ‘keyno’ 2012-03-11 10:49:25 +11:00
Keith Bostic
b829f31011 Fix an error message tag. 2012-03-10 15:46:56 -05:00
Keith Bostic
27c0f27a80 Add the -S option to the test/thread program, that uses a new session
handle on every operation.  This tests issue #178.
2012-03-10 11:58:54 -05:00
Michael Cahill
12e95a3fa7 Apply style scripts to the test sources. 2012-02-24 20:41:03 +11:00
Michael Cahill
1e5200e0cb Remove the config string from WT_CURSOR::close: it is no longer required and simplifies the code. 2012-02-02 10:56:15 +11:00
Keith Bostic
4879e63e5b More copyright cleanup. 2012-02-01 15:32:36 +00:00
Michael Cahill
3f87e3d087 Fix uninitialized warnings with GCC 4.2. 2012-01-31 10:38:15 +11:00
Michael Cahill
85874d07c9 Fix up various places that accessed statistics keys via the old interface.
--HG--
extra : rebase_source : 33fd091053a50769c30c407488d2a764248c763e
2012-01-20 12:22:36 +11:00
Keith Bostic
c6c06e3b88 Change the name of the schema file to WiredTiger.wt 2011-12-25 18:32:46 +00:00
Michael Cahill
95a27b80ae Rename config keys for page and overflow sizes to {internal,leaf}_{item,page}_max 2011-11-23 22:07:34 +11:00
Michael Cahill
e24981d156 Remove the "multithread" configuration for connections. 2011-10-18 10:29:11 +11:00
Michael Cahill
19ba32fb19 Use a cast when trying to print a pthread_t. 2011-10-11 11:56:21 +11:00
Keith Bostic
78bd4f8995 Implement the wiredtiger_open "create" and "exclusive" configuration
flags, and hook them up to the WT_CONNECTION->is_new method.

Add a global structure (WT_PROCESS), which includes a mutex and
maintains a linked list of the WT_CONNECTION structures in the process.

Change the underlying "file exists" function to correctly return errors,
rather than including errors in "file doesn't exist" returns.

The only place we're using the string output separator is in the debug
code, remove it from the "global" structure, and make it static in the
Btree debug file.

Move the close of the logging file handle into WT_CONNECTION destroy,
instead of doing in connection close.   This isn't right, but right now
we don't have a good dividing line between what code in
connection-open/connection-close, connection-init/connection-destroy,
and then there's a bunch of initialization in wiredtiger_open too.

Delete the home/mode arguments from __wt_connection_open, they were
never used and I think they are never going to be used, at this point.

Minor re-working of the mutex functions so they handle NULL WT_SESSION
handles correctly.
2011-10-01 10:11:01 +00:00
Keith Bostic
a21f05690e typo, missed == 0 test. 2011-09-28 15:15:21 +00:00
Keith Bostic
7e7cd59988 Fill in the rest of the statistics cursor methods, adding prev, last,
set-key, search and search-near.

Change the statistics cursor "key" to be the description field of the
statistic (the previous key was the internal name, and while the
description field isn't a great choice because it might easily change,
the internal name is completely useless).

Change the order of the raw statistics return from v,pval to pval,v,
so it matches the printable return.

Add the -p option to the "wt stat" command, it prints out all stats
with the specified prefix.
2011-09-28 11:54:51 +00:00
Keith Bostic
079e192a25 KNF. 2011-09-27 15:11:16 +00:00
Keith Bostic
4bf205bb6a Fix a few diagnostic messages. 2011-09-27 10:47:33 +00:00
Keith Bostic
0178d36d65 Put in a (really, really coarse-grained) timer. 2011-09-27 10:41:17 +00:00
Keith Bostic
01274746a0 Make arguments (roughly) match test/format, I've got -r == runs wired
into my hands at this point.
2011-09-27 10:27:34 +00:00