Rich Prohaska
f62ff656d5
make test-coverage addresses #277
...
git-svn-id: file:///svn/tokudb@1772 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-21 15:46:12 +00:00
Rich Prohaska
374474293a
build the coverage tool addresses #277
...
git-svn-id: file:///svn/tokudb@1771 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-21 15:24:59 +00:00
Yoni Fogel
6d1c862561
Addresses #288
...
Fixes bugs in tests where find parameters did not have data == NULL
git-svn-id: file:///svn/tokudb@1770 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-21 15:20:21 +00:00
Yoni Fogel
0ac037f296
Addresses #288
...
* Query Tests:
* Tree is empty (return none).
* Tree contains only elements to the left.
* Tree contains only elements to the right.
* Tree contains only elements to the left and to the right.
* Tree contains overlaps and elements to the left.
* Tree contains overlaps and elements to the right.
* Tree contains overlaps and elements to the left and to the right.
git-svn-id: file:///svn/tokudb@1769 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-21 15:15:32 +00:00
Yoni Fogel
3dfc59f193
Addresses #288
...
* Query Tests:
* Tree is empty (return none).
* Tree contains only elements to the left.
* Tree contains only elements to the right.
* Tree contains only elements to the left and to the right.
* Tree contains overlaps and elements to the left.
* Tree contains overlaps and elements to the right.
* Tree contains overlaps and elements to the left and to the right.
git-svn-id: file:///svn/tokudb@1768 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-21 15:15:08 +00:00
Rich Prohaska
155a75874a
add test-coverage target addresses #277
...
git-svn-id: file:///svn/tokudb@1767 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-21 14:03:46 +00:00
Yoni Fogel
9d76a97baa
Addresses #288
...
Test of /*
Limited/Unlimited Queries
Limit of k does not produce all, but limit of 0 does. Single point overlaps
*/
git-svn-id: file:///svn/tokudb@1757 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-20 01:54:43 +00:00
Yoni Fogel
e5f4d2acfb
Addresses #287
...
Updated header and makefile for rangetree.h
git-svn-id: file:///svn/tokudb@1746 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-19 00:22:25 +00:00
Yoni Fogel
0430769843
Addresses #288
...
Added the following tests:
* Single point overlaps
* Tree: {|0-1|}, query of |1-2| returns |0-1|
* Tree: {|1-2|}, query of |0-1| returns |1-2|
* Tree: {|1-2|}, insert of of |0-1| success == allow_overlaps
* Tree: {|0-1|}, insert of of |1-2| success == allow_overlaps
* Complete overlaps
* Tree: {|0-3|}, query of |1-2| returns |0-3|
* Tree: {|1-2|}, query of |0-3| returns |1-2|
* Tree: {|1-2|}, insert of of |0-3| success == allow_overlaps
* Tree: {|0-3|}, insert of of |1-2| success == allow_overlaps
* Exact overlaps
* Tree: {|0-3|}, query of |0-3| returns |0-3|
* Tree: {|0-3|}, insert of of |0-3| success == allow_overlaps
Also freed buf and NULLed the pointer to help find memory leaks.
git-svn-id: file:///svn/tokudb@1745 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-19 00:14:16 +00:00
Yoni Fogel
0244928d0c
Addresses #288
...
More range tree tests.
git-svn-id: file:///svn/tokudb@1744 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 23:42:27 +00:00
Yoni Fogel
8042a1d132
Addresses #288
...
Additional tests for range trees.
git-svn-id: file:///svn/tokudb@1743 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 22:27:23 +00:00
Yoni Fogel
2b94f88627
Addresses #287 Moved documentation from toku_rt_delete
...
back to toku_rt_insert.
The error code was for insert, not delete.
git-svn-id: file:///svn/tokudb@1742 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 22:15:53 +00:00
Yoni Fogel
e360035b3a
Addresses #287 Added missing error code to toku_rt_insert
...
git-svn-id: file:///svn/tokudb@1741 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 22:14:32 +00:00
Yoni Fogel
2eff86b295
Addresses #288
...
First set of test cases for range trees.
linear.c is stub implementation so we can compile and write tests before
we actually implement the range tree.
The makefiles were modified just enough to get this to work, and have to
be cleaned up a lot.
git-svn-id: file:///svn/tokudb@1740 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 22:10:19 +00:00
Yoni Fogel
d2ef744f21
Renamed header
...
git-svn-id: file:///svn/tokudb@1739 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 22:06:45 +00:00
Yoni Fogel
d2b7298712
Closes #287
...
Added header file with documentation for range trees
git-svn-id: file:///svn/tokudb@1738 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 22:06:17 +00:00
Bradley C. Kuszmaul
8e8588a9e4
Log block allocation. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@1737 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 21:28:27 +00:00
Rich Prohaska
e202a52f4a
test more c_del return values. addresses #250
...
git-svn-id: file:///svn/tokudb@1736 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 18:45:28 +00:00
Bradley C. Kuszmaul
9e352f523c
Make roll.c compile without warnings in fedora core 8. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@1735 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 18:18:11 +00:00
Rich Prohaska
d412a3dcfa
make -C does not update the PWD var. addresses #277
...
git-svn-id: file:///svn/tokudb@1734 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 18:07:21 +00:00
Yoni Fogel
2153cb9832
git-svn-id: file:///svn/tokudb@1733 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 16:38:51 +00:00
Rich Prohaska
345a341cd0
cleanup the gcov files. addresses #277
...
git-svn-id: file:///svn/tokudb@1732 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 16:05:11 +00:00
Bradley C. Kuszmaul
278653d431
rollback for 5 now runs (but the files are wrong). Started working on a brtdump that will help debug this stuff. Right away I see important file differences after recover (the unused memory and unnamed root are wrong). Addresses #27 .
...
git-svn-id: file:///svn/tokudb@1731 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 16:01:25 +00:00
Rich Prohaska
14aa21f027
add list-test. addresses #277
...
git-svn-id: file:///svn/tokudb@1730 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 15:26:17 +00:00
Rich Prohaska
63f80c0cd6
make build-coverage. addresses #277
...
git-svn-id: file:///svn/tokudb@1729 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-18 14:43:32 +00:00
Rich Prohaska
08dca9d5b5
test multiple writers. addresses #7
...
git-svn-id: file:///svn/tokudb@1719 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-17 20:42:44 +00:00
Bradley C. Kuszmaul
fa33cff297
set child properly. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@1718 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-17 19:36:44 +00:00
Rich Prohaska
fa19e0a16a
add test-primes. addresses #277
...
git-svn-id: file:///svn/tokudb@1717 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-17 19:35:12 +00:00
Bradley C. Kuszmaul
26bce089d0
Log node creation more accurately. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@1716 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-17 19:03:37 +00:00
Rich Prohaska
aebfdd25fa
clean gcov files. addresses #277
...
git-svn-id: file:///svn/tokudb@1715 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-17 16:00:45 +00:00
Bradley C. Kuszmaul
6bb86b7210
Log node splits better. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@1714 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-17 15:41:42 +00:00
Bradley C. Kuszmaul
a5e4c9f921
Gratuitous cleanup of test-weakxaction.c. Addresses #281 .
...
git-svn-id: file:///svn/tokudb@1713 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-17 14:05:06 +00:00
Bradley C. Kuszmaul
d9fbbffee7
Find out about weak transactions: They do conflict. Fixes #281 .
...
git-svn-id: file:///svn/tokudb@1707 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-17 09:11:37 +00:00
Yoni Fogel
f8bab84f2c
Ported test_db_thread_insert to OSX
...
git-svn-id: file:///svn/tokudb@1699 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-16 21:49:42 +00:00
Yoni Fogel
fdb91a8351
Changed object-calls to direct function calls to avoid
...
incorrect locking.
Addresses #7
git-svn-id: file:///svn/tokudb@1698 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-16 21:48:57 +00:00
Rich Prohaska
ad246368df
test the big ydb lock with multiple put threads. closes #7
...
git-svn-id: file:///svn/tokudb@1697 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-16 21:13:14 +00:00
Yoni Fogel
eb7701b0f7
Port to OSX.
...
#if defined(__APPLE__)
static pthread_mutex_t ydb_big_lock = PTHREAD_MUTEX_INITIALIZER;
#else
static pthread_mutex_t ydb_big_lock = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;
#endif
Unsure if this does the same thing for apple.
Addresses #280
git-svn-id: file:///svn/tokudb@1696 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-16 20:14:01 +00:00
Rich Prohaska
d987eff7df
increase test coverage. addresses #277
...
git-svn-id: file:///svn/tokudb@1695 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-16 18:59:36 +00:00
Rich Prohaska
96f91dfefd
add db->get_flags tests. addresses #277
...
git-svn-id: file:///svn/tokudb@1694 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-16 18:20:15 +00:00
Rich Prohaska
95416f09a8
add GCOV_FLAGS var to Makefiles. addresses #277
...
git-svn-id: file:///svn/tokudb@1693 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-16 17:41:47 +00:00
Bradley C. Kuszmaul
11e52586e6
Log and recover for note splits works a little better (recovery runs, but the file is wrong for test_log5). Addresses #27
...
git-svn-id: file:///svn/tokudb@1692 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-16 15:41:12 +00:00
Bradley C. Kuszmaul
d0e64cf702
Log and recover for note splits works a little better. Addresses #27
...
git-svn-id: file:///svn/tokudb@1691 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-16 14:13:21 +00:00
Bradley C. Kuszmaul
89985a3175
Improve logging. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@1690 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-16 13:50:23 +00:00
Yoni Fogel
55d1be5b65
OSX does not appear to have fmemopen. Making note
...
git-svn-id: file:///svn/tokudb@1681 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 23:45:00 +00:00
Bradley C. Kuszmaul
9566acc430
Log node splits a little better. Addresses #27
...
git-svn-id: file:///svn/tokudb@1679 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 21:50:45 +00:00
Rich Prohaska
0a4c6f53ad
free -> toku_free. addresses #275
...
git-svn-id: file:///svn/tokudb@1678 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 21:04:46 +00:00
Bradley C. Kuszmaul
6e5d5485ab
Get rid of calls to free. Should use toku_free. Fixes #275 .
...
git-svn-id: file:///svn/tokudb@1677 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 20:15:06 +00:00
Rich Prohaska
86f9b2268f
fix test_db_thread_secondary. addresses #167
...
git-svn-id: file:///svn/tokudb@1675 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 18:37:10 +00:00
Rich Prohaska
5e13febe7c
multithread check DBT.flags
...
git-svn-id: file:///svn/tokudb@1674 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 18:10:57 +00:00
Rich Prohaska
a596956318
need -lpthread to get mutex locks to work right (not recursive). addresses #167
...
git-svn-id: file:///svn/tokudb@1673 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 17:14:23 +00:00