Commit Graph

32 Commits

Author SHA1 Message Date
Alex Gorrod
192a75ed36 Make new in-memory only error return undocumented. 2015-10-30 09:59:46 +11:00
Alex Gorrod
af5d413d7b Coding standard compliance 2015-10-22 14:14:55 +11:00
Alex Gorrod
05d22cb131 WT-2178 When running in memory return an error if an operation would
cause the cache size to be exceeded.

This introduces a new WiredTiger error return code.
This captures operations at the cursor boundary - that may be insufficient,
it could be safer to catch this when allocating update structures. That
check would lead to more complex internal error handling.
2015-10-22 14:04:42 +11:00
Keith Bostic
74f60fbd81 Error functions are auto-generated, fix the comments in the scripts. 2015-07-23 07:58:02 -04:00
Keith Bostic
d985bf7de6 I broke the Windows error handling code with the WT_SESSION.strerror
rework, take another run at it.
2015-02-18 17:41:22 -05:00
Michael Cahill
84c66e709b Merge pull request #1629 from wiredtiger/session-strerror
WT_SESSION.strerror
2015-02-18 13:48:58 +11:00
Susan LoVerso
46b7721215 Add recover config setting and use it in the wt command. #1651 2015-02-12 13:27:32 -05:00
Keith Bostic
a26d87a53e Replace wiredtiger_strerror_r with WT_SESSION.strerror, reference #1516. 2015-02-02 19:20:33 -05:00
Keith Bostic
73e2bc2ffa Keep wiredtiger_strerror() as thread-safe as possible by splitting the
possible error returns into "constant string" and other, and checking
for constant strings before anything else.
2015-01-04 12:41:00 -05:00
Keith Bostic
baa157b406 Add wiredtiger_strerror_r, a thread-safe version of wiredtiger_strerror,
which allows us to support Windows' errors where we have to allocate a
buffer to get the error string.
2014-12-24 11:15:21 -05:00
Keith Bostic
067f09a83b Add some wording around WT_PANIC to clarify that the application can
simply exit, no further action is required.
2014-12-12 08:11:34 -05:00
Keith Bostic
411a97bca2 Change the Python scripts to follow Python indenting standards (4 space
indents, spaces only).
2014-12-03 20:43:47 -05:00
Keith Bostic
46fa7f0b63 Changes in #1204, #1288 mistakenly changed the values for some error
defines, which breaks backward compatibility. (The WT_DEADLOCK error
name sorted differently from WT_ROLLBACK, and we were assigning error
values based on the sort order in a script.) Revert the change, and make
sure it doesn't happen again.
2014-12-03 13:46:01 -05:00
Keith Bostic
056578d3d5 The error list source document was renamed, update the script. 2014-08-29 10:34:38 -04:00
Keith Bostic
2ef3de771b Minor futzing with the LevelDB copyright checks, add a WiredTiger
copyright notice to the leveldb/port/ files (such as they are).

Move src/api/api_XXX into src/conn/XXX, there's no reason to have an api
directory in the lower level (and it's about 100 lines of code, anyway).
2014-06-24 10:06:07 -04:00
Michael Cahill
aa6c1500b2 Check Python scripts for 80 column line wrapping, fix violations. 2013-11-05 09:47:42 +11:00
Michael Cahill
a37f94d337 Move pack/unpack methods into the extension API, because extensions shouldn't link with the WiredTiger library.
While in the area, make doxygen comment formatting consistent: block comments should have a blank first line.
2013-04-22 17:41:34 +10:00
Keith Bostic
c52a7f07c1 Add a new error, WT_PANIC, which will be the panic return, ref #215.
Add an "error handling" section to the documentation so errors are
grouped in a single place.
2012-12-10 11:43:44 +00:00
Michael Cahill
f6f0d5b36e Reorg the api directory into connection and session parts. While in the area, rename s_copyright.lst to s_copyright.list to match the rest of the scripts.
--HG--
rename : dist/s_copyright.lst => dist/s_copyright.list
rename : src/api/event_handler.c => src/api/api_event.c
rename : src/api/strerror.c => src/api/api_strerror.c
rename : src/api/config.c => src/config/config.c
rename : src/api/config_check.c => src/config/config_check.c
rename : src/api/config_collapse.c => src/config/config_collapse.c
rename : src/api/config_concat.c => src/config/config_concat.c
rename : src/api/config_def.c => src/config/config_def.c
rename : src/api/api_conn.c => src/conn/conn_api.c
rename : src/schema/schema_pack.c => src/packing/packing.c
rename : src/api/api_pack.c => src/packing/packing_api.c
rename : src/api/api_session.c => src/session/session_api.c
rename : src/api/session_btree.c => src/session/session_btree.c
extra : rebase_source : 766beca25d6fa0cc6a2802c08c091d5144ffb248
2011-12-14 11:11:02 +11:00
Michael Cahill
62a82ac360 Wrap error return documentation in named section, link to it from @return sections. 2011-11-15 18:17:08 +11:00
Michael Cahill
96fe5b432c Make WT_RESTART undocumented. 2011-09-20 11:07:01 +10:00
Michael Cahill
b9eb1bbb21 Remove the internal API, move automatically generated code to the public API.
refs #28

--HG--
rename : dist/api_class.py => dist/api_data.py
2011-04-25 13:54:49 +10:00
Michael Cahill
b87b3d708f Minor doc cleanup. 2011-03-07 23:00:52 +11:00
Michael Cahill
4cf87d06a4 Remove '$Id$ from sources, add more file to the list for s_copyright to check. 2011-02-16 16:15:04 +11:00
Michael Cahill
9bb8dceaa7 Move "include" under src so that any file can be opened with "../*/<file>.[ch]".
refs #27

--HG--
rename : include/api_int.h => src/include/api_int.h
rename : include/bitstring.h => src/include/bitstring.h
rename : include/btree.h => src/include/btree.h
rename : include/cache.h => src/include/cache.h
rename : include/config.h => src/include/config.h
rename : include/cur_std.h => src/include/cur_std.h
rename : include/debug.h => src/include/debug.h
rename : include/extern.h => src/include/extern.h
rename : include/fh.h => src/include/fh.h
rename : include/mem.h => src/include/mem.h
rename : include/misc.h => src/include/misc.h
rename : include/mutex.h => src/include/mutex.h
rename : include/queue.h => src/include/queue.h
rename : include/serial.h => src/include/serial.h
rename : include/stat.h => src/include/stat.h
rename : include/util.h => src/include/util.h
rename : include/verify_build.h => src/include/verify_build.h
rename : include/walk.h => src/include/walk.h
rename : include/wiredtiger.in => src/include/wiredtiger.in
rename : include/wt_internal.in => src/include/wt_internal.in
2011-02-04 09:05:27 +11:00
Michael Cahill
5cc55f0dc6 Add doxygen comments for error codes. 2011-02-03 11:26:01 +11:00
Michael Cahill
4086384cea Use Python idioms in api_err.py.
refs #26
2011-02-01 21:25:48 +11:00
Michael Cahill
7ebbbf1d52 Restructure the tree to ease merge.
refs #27

--HG--
branch : keith
rename : lint/fl => dist/lint/fl
rename : lint/lint.current => dist/lint/lint.current
rename : inc_posix/bitstring.h => include/bitstring.h
rename : inc_posix/btree.h => include/btree.h
rename : inc_posix/cache.h => include/cache.h
rename : inc_posix/debug.h => include/debug.h
rename : inc_posix/extern.h => include/extern.h
rename : inc_posix/fh.h => include/fh.h
rename : inc_posix/mem.h => include/mem.h
rename : inc_posix/misc.h => include/misc.h
rename : inc_posix/mutex.h => include/mutex.h
rename : inc_posix/queue.h => include/queue.h
rename : inc_posix/serial.h => include/serial.h
rename : inc_posix/stat.h => include/stat.h
rename : inc_posix/util.h => include/util.h
rename : inc_posix/walk.h => include/walk.h
rename : inc_posix/wiredtiger.in => include/wiredtiger.in
rename : inc_posix/wt_internal.in => include/wt_internal.in
rename : btree/bt_alloc.c => src/btree/bt_alloc.c
rename : btree/bt_bulk.c => src/btree/bt_bulk.c
rename : btree/bt_cache.c => src/btree/bt_cache.c
rename : btree/bt_close.c => src/btree/bt_close.c
rename : btree/bt_cmp.c => src/btree/bt_cmp.c
rename : btree/bt_debug.c => src/btree/bt_debug.c
rename : btree/bt_desc.c => src/btree/bt_desc.c
rename : btree/bt_discard.c => src/btree/bt_discard.c
rename : btree/bt_dump.c => src/btree/bt_dump.c
rename : btree/bt_evict.c => src/btree/bt_evict.c
rename : btree/bt_misc.c => src/btree/bt_misc.c
rename : btree/bt_open.c => src/btree/bt_open.c
rename : btree/bt_ovfl.c => src/btree/bt_ovfl.c
rename : btree/bt_page.c => src/btree/bt_page.c
rename : btree/bt_read.c => src/btree/bt_read.c
rename : btree/bt_reconcile.c => src/btree/bt_reconcile.c
rename : btree/bt_ret.c => src/btree/bt_ret.c
rename : btree/bt_rw.c => src/btree/bt_rw.c
rename : btree/bt_stat.c => src/btree/bt_stat.c
rename : btree/bt_sync.c => src/btree/bt_sync.c
rename : btree/bt_vrfy.c => src/btree/bt_vrfy.c
rename : btree/bt_walk.c => src/btree/bt_walk.c
rename : btree/c_drain.c => src/btree/c_drain.c
rename : btree/c_init.c => src/btree/c_init.c
rename : btree/c_page.c => src/btree/c_page.c
rename : btree/c_read.c => src/btree/c_read.c
rename : btree/col_get.c => src/btree/col_get.c
rename : btree/col_put.c => src/btree/col_put.c
rename : btree/col_srch.c => src/btree/col_srch.c
rename : btree/row_get.c => src/btree/row_get.c
rename : btree/row_put.c => src/btree/row_put.c
rename : btree/row_srch.c => src/btree/row_srch.c
rename : db/db_err.c => src/db/db_err.c
rename : db/db_getset.c => src/db/db_getset.c
rename : db/db_handle.c => src/db/db_handle.c
rename : db/db_huffman.c => src/db/db_huffman.c
rename : db/db_open.c => src/db/db_open.c
rename : db/db_stat.c => src/db/db_stat.c
rename : db/db_sync.c => src/db/db_sync.c
rename : env/env_err.c => src/env/env_err.c
rename : env/env_getset.c => src/env/env_getset.c
rename : env/env_global.c => src/env/env_global.c
rename : env/env_handle.c => src/env/env_handle.c
rename : env/env_init.c => src/env/env_init.c
rename : env/env_msg.c => src/env/env_msg.c
rename : env/env_open.c => src/env/env_open.c
rename : env/env_stat.c => src/env/env_stat.c
rename : env/env_sync.c => src/env/env_sync.c
rename : env/env_toc.c => src/env/env_toc.c
rename : env/env_workq.c => src/env/env_workq.c
rename : os_posix/os_abort.c => src/os_posix/os_abort.c
rename : os_posix/os_alloc.c => src/os_posix/os_alloc.c
rename : os_posix/os_filesize.c => src/os_posix/os_filesize.c
rename : os_posix/os_fsync.c => src/os_posix/os_fsync.c
rename : os_posix/os_mtx.c => src/os_posix/os_mtx.c
rename : os_posix/os_open.c => src/os_posix/os_open.c
rename : os_posix/os_rw.c => src/os_posix/os_rw.c
rename : os_posix/os_sleep.c => src/os_posix/os_sleep.c
rename : os_posix/os_thread.c => src/os_posix/os_thread.c
rename : os_posix/os_yield.c => src/os_posix/os_yield.c
rename : support/api.c => src/support/api.c
rename : support/cksum.c => src/support/cksum.c
rename : support/err.c => src/support/err.c
rename : support/hazard.c => src/support/hazard.c
rename : support/huffman.c => src/support/huffman.c
rename : support/pow.c => src/support/pow.c
rename : support/prime.c => src/support/prime.c
rename : support/progress.c => src/support/progress.c
rename : support/scratch.c => src/support/scratch.c
rename : support/serial.c => src/support/serial.c
rename : support/simple_setup.c => src/support/simple_setup.c
rename : support/stat.c => src/support/stat.c
rename : support/strerror.c => src/support/strerror.c
rename : support/version.c => src/support/version.c
rename : utilities/db_dump/util_dump.c => src/utilities/db_dump/util_dump.c
rename : utilities/db_load/util_load.c => src/utilities/db_load/util_load.c
rename : utilities/db_stat/util_stat.c => src/utilities/db_stat/util_stat.c
rename : utilities/db_verify/util_verify.c => src/utilities/db_verify/util_verify.c
2011-02-01 09:24:17 +11:00
Keith Bostic
788d3e95e9 Update all the copyright notices to the real corporate name, add a script to
automatically check.

--HG--
branch : keith
2010-10-09 03:22:02 +11:00
Keith Bostic
a9c63d05c4 Rename wt_strerror -> wiredtiger_strerror, avoid user's namespace
--HG--
branch : keith
2009-12-17 01:52:19 +11:00
Keith Bostic
0a0d55290b Forgot to close the file.
--HG--
branch : keith
2008-12-30 02:30:10 +11:00
Keith Bostic
53c5a566ca auto-generate errors & strerror code.
--HG--
branch : keith
2008-12-29 05:36:44 +11:00