Commit Graph

17 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
389d3bca4c WT-2217: change WT_CURSOR.insert to clear "set" key/value on succesful
return.
2015-11-15 12:28:54 -05:00
Keith Bostic
40c0ea67fa Switch uses of wiredtiger_strerror() for WT_SESSION.strerror(). 2015-03-20 17:46:54 -04:00
Keith Bostic
1f9098871a Copyright notices: add MongoDB, update to 2015. 2015-01-04 14:07:56 -05:00
Mark Benvenuto
6828f17265 Port all examples, most tests, and wtperf to Windows
Added windows_shim to emulate most functions
2014-10-16 19:58:17 -04:00
Keith Bostic
4c63f1e53f Minor shuffling to turn on more clang warnings:
- a few more uninitialized variables
- make variables local to a single file static
- replace use of WT_UNUSED_RET with error checking of the call (the
	macro was using a GCC extension clang doesn't like)

With these changes, clang is mostly silent using the following options:

	-Weverything
	-Wno-cast-align
	-Wno-conversion
	-Wno-covered-switch-default
	-Wno-documentation-unknown-command
	-Wno-format-nonliteral
	-Wno-language-extension-token
	-Wno-missing-noreturn
	-Wno-packed
	-Wno-padded
	-Wno-switch-enum
	-Wno-zero-length-array

Also, minor KNF whitespace cleanups.
2014-09-01 15:03:26 -04:00
Michael Cahill
77b426c555 Fix cleanup of home directories for example code, and fix use of system without checking the return value (clang has a warning for that). 2014-08-25 11:07:43 +10:00
Keith Bostic
5606c4b147 We're setting "home" to NULL, and then using it in error messages, which
isn't good, we'll drop core if they ever fire, not a good thing in a
sample program.  Add boilerplate to the examples, if we don't have an
evironment specified by "make check", create a clean standard one and
use it.
2014-08-23 14:58:01 -04:00
Keith Bostic
89ae59259b Lint: primarily make sure no WiredTiger call that returns an error value
ignores that error.
2014-08-23 14:30:52 -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
6ea2734130 CID 1129079 (#1 of 1): Uninitialized pointer read (UNINIT)
8. uninit_use: Using uninitialized value "value".

Restructure so we drop core if there's a problem (initialize
key & value to NULL), and we don't read "value" unless it's
been initialized.
2013-11-15 19:59:49 -05:00
Keith Bostic
1701b0416a CID 1129075 (#2 of 2): Copy into fixed size buffer (STRING_OVERFLOW)
2.  fixed_size_dest: You might overrun the 10 byte fixed-size string
"keybuf" by copying "op->key" without checking the length.
2013-11-15 19:59:49 -05:00
Michael Cahill
3cb521c73d Fix some warnings from clang. 2013-10-23 11:41:58 +11:00
Keith Bostic
2bd115e757 Change WT_CURSOR::insert to not hold a position/resources in the tree on
success.

Add additional wording that WT_CURSOR::reset should be called after any
of the WT_CURSOR search, search-near, update or remove methods, once
the cursor is no longer being used to iterate or retrieve values.

Closes #587.
2013-09-10 12:26:37 -04:00
Michael Cahill
118f99d736 whitespace 2013-08-02 09:51:46 +10:00
Michael Cahill
944950c4ff Don't clear the key after a cursor remove.
refs #607
2013-08-01 23:54:10 +10:00
Michael Cahill
b2814ef953 Clarify when applications have to keep key/value buffers valid. 2013-07-29 12:45:38 +10:00