summaryrefslogtreecommitdiff
path: root/examples/c/ex_async.c
Commit message (Collapse)AuthorAgeFilesLines
* WT-3267 Upgrade copyright notices from 2016 to 2017. (#3374)Keith Bostic2017-04-071-1/+1
|
* WT-3136 bug fix: WiredTiger doesn't check sprintf calls for error return (#3340)Keith Bostic2017-03-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * WT-3136 bug fix: WiredTiger doesn't check sprintf calls for error return Make a pass through the source base to check sprintf, snprintf, vsprintf and vsnprintf calls for errors. * A WiredTiger key is a uint64_t. Use sizeof(), don't hard-wire buffer sizes into the code. * More (u_int) vs. (uint64_t) fixes. * Use CONFIG_APPEND instead of FORMAT_APPEND, it makes more sense. * revert part of 4475ae9, there's an explicit allocation of the size of the buffer. * MVSC complaints: test\format\config.c(765): warning C4018: '<': signed/unsigned mismatch test\format\config.c(765): warning C4018: '>': signed/unsigned mismatch * Change Windows testing shim to correctly use __wt_snprintf * Change Windows test shim to use the __wt_XXX functions * MSDN's _vscprintf API returns the number of characters excluding the termininating nul byte, return that value.
* WT-2617 Fix a bug in pluggable file system example (#2718)Keith Bostic2016-05-051-4/+16
| | | | | | | | | | | | | | | | | | | | | | Don't print "home" if it's NULL. Make ex_async work like the rest of the example programs, creating and using WT_HOME. * We need two sizes, the size of the data in the buffer and the size of the buffer itself, split the two apart, otherwise it's possible to read data that's never been written. Remove the assert the file size is never 0, that's a reasonable condition if the file has never been written. Don't bother realloc the buffer when truncating it to a smaller size. * Add a full smoke test, create a table then write it, close and reopen it, and read the values back. * main() should return EXIT_SUCCESS or EXIT_FAILURE, not a return value from the underlying WiredTiger library.
* WT-2471: review WiredTiger "int" printf formatsKeith Bostic2016-03-111-1/+1
|
* Upgrade copyright notices from 2015 to 2016.Keith Bostic2016-01-011-1/+1
|
* Copyright notices: add MongoDB, update to 2015.Keith Bostic2015-01-041-0/+1
|
* Port all examples, most tests, and wtperf to WindowsMark Benvenuto2014-10-161-0/+6
| | | | Added windows_shim to emulate most functions
* Minor shuffling to turn on more clang warnings:Keith Bostic2014-09-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | - 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.
* Lint: primarily make sure no WiredTiger call that returns an error valueKeith Bostic2014-08-231-2/+2
| | | | ignores that error.
* Return EBUSY if no async handles available and fix ex_async to look for it. ↵Susan LoVerso2014-08-051-2/+9
| | | | #1153.
* Uninitialized variable, thanks, Jenkins!Keith Bostic2014-08-051-0/+2
|
* Review/edit the new asynchronous doc page, lots of randomKeith Bostic2014-08-051-81/+97
| | | | | cleanup/simplifications (at least, hopefully, they cleanup and/or simplify).
* Add a section to docs for async operations. #1139Susan LoVerso2014-08-041-4/+4
|
* Move connection config out to a macro.Susan LoVerso2014-07-171-3/+3
|
* Add use of user-private data structure to async example.Susan LoVerso2014-05-221-5/+23
|
* Accidentally committed non-compiling ex_async.c last time.Susan LoVerso2014-05-221-3/+1
|
* Fix warning.Susan LoVerso2014-05-221-1/+3
|
* Make spell happy, "op's" -> "operation's"Keith Bostic2014-05-061-8/+8
|
* Remove an unused global in ex_async.Michael Cahill2014-05-021-1/+0
| | | | refs #933
* Add asynchronous compact support to async API.Susan LoVerso2014-04-281-0/+4
|
* Add asyncop->get_type API and change example to use it.Susan LoVerso2014-04-211-11/+36
|
* Implement a ring buffer without locking.Susan LoVerso2014-04-151-1/+2
|
* When closing the connection, automatically flush all async ops.Susan LoVerso2014-04-101-4/+4
|
* remove unused variablesMichael Cahill2014-04-101-1/+0
|
* Use an underlying cursor for async op keys/values.Susan LoVerso2014-04-091-10/+4
|
* unusedMichael Cahill2014-04-071-0/+1
|
* Fix some s_string warnings.Susan LoVerso2014-04-031-1/+1
|
* Add async_op config processing.Susan LoVerso2014-04-031-1/+1
|
* Fix warning.Susan LoVerso2014-04-021-4/+2
|
* More printf cleanup.Susan LoVerso2014-04-021-6/+5
|
* Fix example and clean up. Working raw key/values.Susan LoVerso2014-04-021-3/+3
|
* Remove some printfs. Reset example to use 1 table.Susan LoVerso2014-04-021-25/+13
|
* Add raw key/value support.Susan LoVerso2014-04-021-10/+21
|
* Add ASYNCOP_API_CALL. Fix some error paths.Susan LoVerso2014-04-021-1/+16
|
* Add 2nd table to example to test cache.Susan LoVerso2014-04-011-1/+8
|
* Add enqueue and dequeue support.Susan LoVerso2014-03-311-0/+6
|
* Add ex_async to build.Susan LoVerso2014-03-261-8/+10
|
* Clean up pass for s_all.Susan LoVerso2014-03-261-11/+25
|
* Add top layer of functions. Split files.Susan LoVerso2014-03-251-4/+3
|
* Update example.Susan LoVerso2014-03-251-15/+19
|
* First bits of async codeSusan LoVerso2014-03-241-0/+108