Commit Graph

31 Commits

Author SHA1 Message Date
Keith Bostic
1f9098871a Copyright notices: add MongoDB, update to 2015. 2015-01-04 14:07:56 -05:00
Keith Bostic
8da2a4c59d Don't drop core on LSM-only runs, we can't open a cursor to verify with. 2014-12-01 11:59:20 -05:00
Keith Bostic
8731249f41 The type returned from pthread_self() is opaque, we can't cast it to a
(void *) and print it, use the underlying WiredTiger helper routine.
2014-10-22 15:55:56 -04:00
Keith Bostic
b15a01951f Typo, calling log_print_err() with the wrong return error value.
Typo, verify_checkpoint wasn't returning the final error status.
2014-09-16 08:34:09 -04:00
Keith Bostic
acb1853495 Don't assign to ret if ret is never read. 2014-07-02 17:20:01 -04:00
Keith Bostic
bbc01a32fd Ignored return values. 2014-07-02 16:29:07 -04:00
Keith Bostic
261fa0d529 Dead assignment (ignored return value). 2014-07-02 16:27:09 -04:00
Alex Gorrod
ebf7465127 Fix lint in test/checkpoint. 2014-05-06 11:16:47 +10:00
Alex Gorrod
73ba5f2277 Clean up error handling in test/checkpoint. 2014-05-05 17:16:02 +10:00
Alex Gorrod
b146af2cdc Fix memory leaks in test/checkpoint. As reported by Coverity. 2014-05-05 16:29:34 +10:00
Michael Cahill
ce7d672371 If there is a value mismatch in a checkpoint, do lookups in the original tree to see whether it is okay there. 2014-05-05 11:24:44 +10:00
Michael Cahill
1ea6df7871 Simplify test/checkpoint: use integer keys in row stores to avoid different code paths for ROW vs COL. Ensure all tables are updated to the same value. 2014-05-05 11:24:02 +10:00
Keith Bostic
cc2ad0ddfd old-style function definition "()", not "(void)" 2014-04-17 19:39:03 -04:00
Michael Cahill
b15f7bc104 Fix some leaks in the checkpoint tester found by valgrind. 2014-04-18 06:47:27 +10:00
Michael Cahill
5bcd178243 Fix an address-sanitizer failure in the checkpoint test: record numbers are 64-bits. 2014-04-17 17:55:12 +10:00
Michael Cahill
655496c78d Cast atol to u_int to avoid this warning:
test/checkpoint/workers.c:152:27: error: implicit conversion loses integer precision: 'long' to 'u_int' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
2014-04-17 16:38:56 +10:00
Alex Gorrod
b43f059816 Fix build warning. 2014-04-17 16:23:22 +10:00
Alex Gorrod
db290fb278 Fix build warning:
../../../test/checkpoint/checkpointer.c: In function 'get_key_int':
../../../test/checkpoint/checkpointer.c:221: warning: declaration of
'index' shadows a global declaration
/usr/include/strings.h:57: warning: shadowed declaration is here
2014-04-17 16:19:26 +10:00
Michael Cahill
2702ed7bc8 whitespace, spelling 2014-04-17 15:08:08 +10:00
Alex Gorrod
4f39b703e3 Update checkpoint test
* Fix some build warnings
* Add some more comments
2014-04-17 12:04:46 +10:00
Alex Gorrod
40ffc38ffb Fix build warning:
../../../test/checkpoint/checkpointer.c:237:6: warning: variable
'second_key_int' is used uninitialized whenever '||' condition is true
[-Wsometimes-uninitialized]
2014-04-17 11:28:37 +10:00
Michael Cahill
7bd2945746 Have the checkpoint tester output a better message when there is a value mismatch. 2014-04-16 18:44:46 +10:00
Michael Cahill
3154c17401 Fix an off-by-one in the key count when verifying checkpoints. 2014-04-16 18:39:50 +10:00
Alex Gorrod
d94b04a14b Make sure checkpoint tester decodes values properly. 2014-04-16 15:39:07 +10:00
Alex Gorrod
e356b6bc3d Updates to checkpoint tester:
* Clean up cursors after verifying a checkpoint.
* Add command line option to use named checkpoints (-c)
* Dump information if key mismatch encountered.
2014-04-16 15:13:05 +10:00
Alex Gorrod
d0fe4044f3 Fix build warnings in checkpoint tester. 2014-04-15 17:15:18 +10:00
Alex Gorrod
a3d810f43c Checkpoint tester updates based on review feedback.
* Use snapshot isolation in worker thread(s)
* Don't open LSM cursors on a checkpoint
* Fix code that does multiple runs in a single test
* Use the WiredTiger rand implementation, rather than our own.
* Handle deadlocks.
2014-04-15 16:57:12 +10:00
Alex Gorrod
1c82647c7e Update checkpoint tester:
* Use a string for value not a raw.
* Change the value each time the same key is updated.
* Dump key/values when logging is enabled.
2014-04-15 15:51:57 +10:00
Alex Gorrod
1d03c17d23 Add better error handling to checkpoint test.
This should allow us to inspect databases on test failure.
2014-04-15 13:11:02 +10:00
Alex Gorrod
821569bbc5 Checkpointer test getting closer.
This test is designed to transactionally update multiple tables with
identical values. While in parallel executing checkpoints and verifying
that all tables in a checkpoint have identical content.

Supports row, column and LSM table types. Can either select multiple
of the same table type, or a mixture of table types.
2014-04-15 11:41:34 +10:00
Alex Gorrod
c04ec45346 Implement more of checkpoint test program. 2014-04-14 18:44:40 +10:00