Rich Prohaska
7659730252
test_txn_cursor_last.bdb blocks the main thread. lets not run it
...
git-svn-id: file:///svn/tokudb@2895 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-17 14:34:00 +00:00
Bradley C. Kuszmaul
2fc3ca7863
Get rid of array overflow in recovery. Addresses #548 .
...
git-svn-id: file:///svn/tokudb@2893 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-17 14:24:01 +00:00
Bradley C. Kuszmaul
979ae62544
Create {{{test_log10.c}}}. Addresses #548 .
...
git-svn-id: file:///svn/tokudb@2892 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-17 14:23:22 +00:00
Bradley C. Kuszmaul
afcd389e52
test_thread_insert doesn't leak memory any more. The leak is in {{{pthread_exit()}}}. If you return from the initial function, the leak isn't there. Fixes #303 .
...
git-svn-id: file:///svn/tokudb@2884 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-17 04:12:06 +00:00
Bradley C. Kuszmaul
c6f44bd826
Make {{{test_error.tdb}}} happy. Fixes #445 .
...
git-svn-id: file:///svn/tokudb@2883 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-17 03:30:40 +00:00
Bradley C. Kuszmaul
b2e25b58d3
Cleanup makefile a little.
...
git-svn-id: file:///svn/tokudb@2882 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-17 02:59:19 +00:00
Bradley C. Kuszmaul
ac690d7851
Add {{{test_log9}}} to tests. It breaks. Addresses #547 .
...
git-svn-id: file:///svn/tokudb@2881 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-17 02:45:35 +00:00
Bradley C. Kuszmaul
60b6abe1c7
{{{test_log8}}} recovers now. Fixes #544 .
...
git-svn-id: file:///svn/tokudb@2880 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-17 02:40:59 +00:00
Rich Prohaska
c24c5f9951
test case for mysql auto increment problem. addresses #541
...
git-svn-id: file:///svn/tokudb@2877 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-17 00:36:39 +00:00
Yoni Fogel
3bd8d5ec0f
Addresses #523
...
Reordered escalation.
First escalate writes, and only if that succeeds, we escalate the reads.
Now, if we fail during the reads we are still consistent, whereas before
we would need to panic.
git-svn-id: file:///svn/tokudb@2876 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-17 00:21:30 +00:00
Yoni Fogel
84fd413645
Addresses #523
...
Implemented testing if escalating a range from borderwrite is trivial.
git-svn-id: file:///svn/tokudb@2875 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-17 00:20:13 +00:00
Yoni Fogel
30aad7a9b8
Addresses #523
...
Started coding lock escalation.
Have several function stubs that need to be implemented.
git-svn-id: file:///svn/tokudb@2874 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-16 23:58:41 +00:00
Bradley C. Kuszmaul
6d4ed37565
Work on getting test_log8 to recover. Addresse #544 .
...
git-svn-id: file:///svn/tokudb@2873 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-16 22:22:26 +00:00
Bradley C. Kuszmaul
cf4f4b2356
More test coverage. This {{{test_log8}}} breaks recovery. Addresses #536 , #544 .
...
git-svn-id: file:///svn/tokudb@2871 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-16 21:29:09 +00:00
Bradley C. Kuszmaul
128938e2e7
More recovery test coverage. Addresses #536 .
...
git-svn-id: file:///svn/tokudb@2870 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-16 21:19:27 +00:00
Bradley C. Kuszmaul
3f14fe6e82
More recovery test coverage. Addresses #536 .
...
git-svn-id: file:///svn/tokudb@2869 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-16 21:18:59 +00:00
Bradley C. Kuszmaul
814b5638da
Fix {{{tdb_recover}}} to use the right directories. Fixes #543 .
...
git-svn-id: file:///svn/tokudb@2868 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-16 20:57:27 +00:00
Bradley C. Kuszmaul
be9e60427f
Don't complain about {{{db_env_set_func_fsync}}}. Addresses #8 , #499 .
...
git-svn-id: file:///svn/tokudb@2866 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-16 14:05:35 +00:00
Bradley C. Kuszmaul
771125a0cd
Finish making the valgrind error go away in test_logmax. Fixes #542 .
...
git-svn-id: file:///svn/tokudb@2865 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-16 14:01:20 +00:00
Bradley C. Kuszmaul
80588b7151
One of the valgrind errors is from forgetting to {{{closedir()}}}. Addresses #542 .
...
git-svn-id: file:///svn/tokudb@2864 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-16 12:03:46 +00:00
Bradley C. Kuszmaul
19e6297346
Test the other cursor operations against the multithread DBT cursor problem. Fixes #538 .
...
git-svn-id: file:///svn/tokudb@2855 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-15 19:32:08 +00:00
Bradley C. Kuszmaul
99b75cabcd
Deal with the multithreaded cursor DBT memory allocaiton problem. Addresses #538 . (I'm going to write a few more tests before calling it fixed.)
...
git-svn-id: file:///svn/tokudb@2854 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-15 19:06:39 +00:00
Bradley C. Kuszmaul
d3a49aaa24
Improve printfs in memory.h. Addresses #538 .
...
git-svn-id: file:///svn/tokudb@2853 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-15 18:58:52 +00:00
Rich Prohaska
1d9ab114a8
BDB and TDB have different behaviour WRT static buffers managed by the DB code. we add an
...
assert for the BDB behaviour.
git-svn-id: file:///svn/tokudb@2847 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-15 13:18:53 +00:00
Rich Prohaska
d72cf0b56e
make test_cursor_2 work on tdb by setting DB_PRIVATE
...
git-svn-id: file:///svn/tokudb@2846 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-15 13:15:28 +00:00
Rich Prohaska
a9e8183dd6
valgrind found an uninitialized variable
...
git-svn-id: file:///svn/tokudb@2845 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-15 13:11:49 +00:00
Yoni Fogel
4f9b5633d0
addresses #523
...
create (but not yet implement) functions for lock escalation
git-svn-id: file:///svn/tokudb@2836 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 20:37:04 +00:00
Bradley C. Kuszmaul
4d369d8572
Segrate rollback and recover functions. Write a brt-level test for the cursor static variable problem. Addresses #536 , #538 .
...
git-svn-id: file:///svn/tokudb@2829 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 19:14:31 +00:00
Bradley C. Kuszmaul
86bd15c721
make {{{test_cursor_2}}} use an environment with {{{DB_THREAD}}} set, since that the MySQL usage. Addresses #538 .
...
git-svn-id: file:///svn/tokudb@2828 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 18:48:26 +00:00
Zardosht Kasheff
7e678e9c36
addresses #523
...
write iterator for linear range tree
git-svn-id: file:///svn/tokudb@2826 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 17:09:50 +00:00
Yoni Fogel
134ff0fa4a
Addresses #523
...
Uses range iterator (of range trees) to simplify code in lock tree.
This allowed us to deleting 'emergency' version of a function that was not well tested.
git-svn-id: file:///svn/tokudb@2825 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 15:05:30 +00:00
Rich Prohaska
bddb4f4e71
test case. address #538
...
git-svn-id: file:///svn/tokudb@2821 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 14:03:26 +00:00
Bradley C. Kuszmaul
4df01c3141
Make test-recover3.tdb Work. Fixes #537 . roll.c coverage is now up to 77.5% (from 52.4%). Addresses #536 .
...
git-svn-id: file:///svn/tokudb@2819 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 12:28:49 +00:00
Bradley C. Kuszmaul
56eaba9c3d
Make test-recover3.bdb run by making xactions smaller. Addresses #537 .
...
git-svn-id: file:///svn/tokudb@2817 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 11:18:03 +00:00
Bradley C. Kuszmaul
2d0050a5b3
Increase roll.c coverage more, but this test, {{{test-recover3.tdb}}} finds bugs. Addresses #536 , #537 .
...
git-svn-id: file:///svn/tokudb@2816 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 11:14:36 +00:00
Bradley C. Kuszmaul
6fdcb90618
Up roll.c coverage to 52.4% from 46.4%. Addresses #536 .
...
git-svn-id: file:///svn/tokudb@2815 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 11:02:51 +00:00
Bradley C. Kuszmaul
3767af1bfe
Up roll.c coverage to 52.4% from 46.4%. Addresses #536 .
...
git-svn-id: file:///svn/tokudb@2814 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 11:02:28 +00:00
Bradley C. Kuszmaul
334cd866a5
Make the test-recover1 pass valgrind. Addresses #483 .
...
git-svn-id: file:///svn/tokudb@2813 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 10:31:37 +00:00
Bradley C. Kuszmaul
095bf48996
Remove the helgrind tests. Fixes #535 .
...
git-svn-id: file:///svn/tokudb@2812 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 09:12:23 +00:00
Bradley C. Kuszmaul
d933a0db4a
Make {{{test_txn_abort6.bdb}}} be a no-op. Fixes #534 .
...
git-svn-id: file:///svn/tokudb@2811 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 08:58:22 +00:00
Bradley C. Kuszmaul
5f5a698b51
Fix test_set_lk_max_locks. It will have to be fixed again when lock escalation starts working. Fixes #533 .
...
git-svn-id: file:///svn/tokudb@2809 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 08:45:01 +00:00
Bradley C. Kuszmaul
851e66b476
Fix test_weakxaction. Fixes #532 .
...
git-svn-id: file:///svn/tokudb@2807 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-14 07:13:59 +00:00
Bradley C. Kuszmaul
5775790108
Disable an invocation that causes BDB 4.6.21 to segfault. Fixes #530 . (Again)
...
git-svn-id: file:///svn/tokudb@2799 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-13 21:48:55 +00:00
Bradley C. Kuszmaul
f6fcc7dc9d
Disable a function call that causes BDB 4.6.21 to segfault. Fixes #530 .
...
git-svn-id: file:///svn/tokudb@2798 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-13 21:40:57 +00:00
Bradley C. Kuszmaul
f347a1c9e7
Fix {{{toku_logger_fsync}}}. Fixes #529 .
...
git-svn-id: file:///svn/tokudb@2797 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-13 21:29:04 +00:00
Bradley C. Kuszmaul
515d526a50
Make test_log5.recover work again. Fixes #527 .
...
git-svn-id: file:///svn/tokudb@2796 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-13 20:55:08 +00:00
Yoni Fogel
383d895224
Addresses #523
...
Cleaned up iteration code based on code review by Zardosht.
git-svn-id: file:///svn/tokudb@2794 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-13 20:21:45 +00:00
Yoni Fogel
af4fc44e02
Addresses #523
...
Cleaned up iteration code based on code review.
Changed iteration return value to EDOM when you try to iterate after an insert, in
redblacktrees
git-svn-id: file:///svn/tokudb@2793 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-13 20:03:51 +00:00
Zardosht Kasheff
2f5edae602
addresses #523
...
address more CR comments from previous checkin
git-svn-id: file:///svn/tokudb@2792 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-13 19:50:21 +00:00
Zardosht Kasheff
d5312ffb19
addresses #523
...
address CR comments from previous checkin
git-svn-id: file:///svn/tokudb@2791 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-13 19:36:38 +00:00