Commit graph

1238 commits

Author SHA1 Message Date
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
Zardosht Kasheff
c3f89d4506 addressed #523
added functions for range tree iteration

git-svn-id: file:///svn/tokudb@2790 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-13 19:22:21 +00:00
Yoni Fogel
8e3c0bd564 Added -finline-functions to default compile
git-svn-id: file:///svn/tokudb@2771 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-12 19:47:22 +00:00
Yoni Fogel
abc8f71edf Improved speed of range tree hash table.
git-svn-id: file:///svn/tokudb@2770 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-12 19:44:31 +00:00
Bradley C. Kuszmaul
68e8036c75 Make recovery work when called from {{{DB_ENV->open}}}. Fixes #483.
git-svn-id: file:///svn/tokudb@2768 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-12 19:40:38 +00:00
Yoni Fogel
2471b8e7fe Removed warnings
git-svn-id: file:///svn/tokudb@2767 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-12 18:37:29 +00:00
Yoni Fogel
316658bc32 Removed warning option that killed the build.
Aggregate returns is something we want; we do not need to be warned about them.

git-svn-id: file:///svn/tokudb@2766 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-12 18:21:37 +00:00
Bradley C. Kuszmaul
22963df0ed Add test to see if recovery works. Addresses #483.
git-svn-id: file:///svn/tokudb@2764 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-12 18:09:21 +00:00
Bradley C. Kuszmaul
0f29f9abe7 Group commit working in tokulogger. Need to release some locks in ydb. Addresses #484.
git-svn-id: file:///svn/tokudb@2763 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-12 17:55:11 +00:00
Yoni Fogel
ee2351986d Removed warnings.
git-svn-id: file:///svn/tokudb@2762 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-12 17:48:54 +00:00
Yoni Fogel
7299745f97 Removed warnings.
git-svn-id: file:///svn/tokudb@2761 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-12 17:48:24 +00:00
Bradley C. Kuszmaul
072c3c2f5e Make {{{PROF_FLAGS=-pg}}} cause static linking to happen for {{{db-benchmark-test-tokudb}}}. Addresses #515.
git-svn-id: file:///svn/tokudb@2756 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-12 08:36:02 +00:00
Bradley C. Kuszmaul
4ea09248a3 All the makefiles should honor {{{PROF_FLAGS}}}. Make db-benchmark-test statically linkable by removing the conflict with {{{toku_fill_dbt}}}. Although gprof still doesn't work with dynamically linked libraries, we can statically link it and get useful info. Closes #515.
git-svn-id: file:///svn/tokudb@2755 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-12 08:30:49 +00:00
Bradley C. Kuszmaul
7c4eabe86f Create log-test5.c
git-svn-id: file:///svn/tokudb@2743 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-11 19:55:04 +00:00
Bradley C. Kuszmaul
e672f87aa9 Add log-test4.c. Addresses #484.
git-svn-id: file:///svn/tokudb@2742 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-11 18:58:36 +00:00
Bradley C. Kuszmaul
7469a733d2 Create log-test3.c
git-svn-id: file:///svn/tokudb@2741 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-11 18:55:42 +00:00
Bradley C. Kuszmaul
92b5b72fe8 Update log-test to work better and test some logging as unit tests. Addresses #484.
git-svn-id: file:///svn/tokudb@2740 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-11 18:51:36 +00:00
Bradley C. Kuszmaul
c7461dd3a9 Update log-test to work better and test some logging as unit tests. Addresses #484.
git-svn-id: file:///svn/tokudb@2739 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-11 18:51:26 +00:00
Yoni Fogel
42d88c4ec2 Removed memory leak in a test (tests fault).
git-svn-id: file:///svn/tokudb@2737 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-11 17:46:16 +00:00
Yoni Fogel
af0a5a1315 MOdification to makefiles.
git-svn-id: file:///svn/tokudb@2736 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-11 17:43:21 +00:00
Yoni Fogel
3304ff05ae Closes #513
Integrated tlogn lock tree into tokudb.

git-svn-id: file:///svn/tokudb@2735 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-11 17:37:06 +00:00