Commit graph

979 commits

Author SHA1 Message Date
Vincenzo Liberatore
d283051af7 Addresses #293
Addresses #307
Fixed the condition under which the border sweep would fail.


git-svn-id: file:///svn/tokudb@2081 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-04 21:55:16 +00:00
Vincenzo Liberatore
5762a74d90 Addresses #293
Addresses #307
Beautifies Makefile in tests. Fixes initialization of hash table scanning.


git-svn-id: file:///svn/tokudb@2080 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-04 21:14:52 +00:00
Vincenzo Liberatore
1154857408 Addresses #293
Addresses #307
Write lock tests. Bug fix on borderwrite check. 

git-svn-id: file:///svn/tokudb@2078 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-04 20:55:11 +00:00
Yoni Fogel
d1e31549d4 Addresses #307
Added test cases for the hashtable.
Now has 100% line and branch coverage of hashtable except for asserts.

git-svn-id: file:///svn/tokudb@2077 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-04 17:16:45 +00:00
Bradley C. Kuszmaul
016a5b8fea Change BRT_CMD to be a pointer instead (struct brt_cmd *) instead of a struct (struct brt_cmd). Addresses #242.
git-svn-id: file:///svn/tokudb@2072 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-04 15:04:22 +00:00
Rich Prohaska
d6249b2679 implement DB_CURRENT_BINDING, an operation that returns the current cursor kv binding even if deleted. closes #274
git-svn-id: file:///svn/tokudb@2063 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-03 18:26:01 +00:00
Yoni Fogel
30a66896c0 Addresses #329
Addresses #293
Addresses #307

Finished code and integration of rangetree hashtable and lock tree.
All tests pass now (although tests have not yet been written for the hashtable).

git-svn-id: file:///svn/tokudb@2045 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-02 02:06:22 +00:00
Yoni Fogel
463245e8d8 Addresses #293
Addresses #329
Combined rangetree hashtables and the lock tree.

git-svn-id: file:///svn/tokudb@2044 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-02 01:12:44 +00:00
Yoni Fogel
bcc562a931 Addresses #329
Moved hash_tables to the lock tree dir

git-svn-id: file:///svn/tokudb@2042 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-02 00:24:31 +00:00
Yoni Fogel
b3da3a650b Addresses #329
Most of the implementation of the range tree hash table

git-svn-id: file:///svn/tokudb@2041 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-02 00:23:53 +00:00
Vincenzo Liberatore
f845e1f299 Addresses #329
Header file

git-svn-id: file:///svn/tokudb@2040 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 22:56:05 +00:00
Yoni Fogel
9ce2359f89 Added hash table
git-svn-id: file:///svn/tokudb@2039 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 21:52:10 +00:00
Vincenzo Liberatore
f30467d30f Addresses #293
Implements unlock

git-svn-id: file:///svn/tokudb@2038 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 21:35:39 +00:00
Yoni Fogel
2db8ca6af8 Addresses #293
Addresses #307
Replaced unsigned with u_int32_t
Also one bugfix with incorrect assert.
Made all tests run properly (bugs were mostly in the test).

git-svn-id: file:///svn/tokudb@2035 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 19:26:13 +00:00
Yoni Fogel
11ffe0091f Replaced unsigned with u_int32_t
git-svn-id: file:///svn/tokudb@2034 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 19:24:40 +00:00
Rich Prohaska
ecf22e0ff9 put the pma cursor in its own .h file
git-svn-id: file:///svn/tokudb@2033 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 19:00:12 +00:00
Yoni Fogel
4889847a39 Minor modifications to remove some warnings.
git-svn-id: file:///svn/tokudb@2032 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 18:47:40 +00:00
Yoni Fogel
061afaac92 Addresses #293
Addresses #307
\marginpar{Code review/refactor pass}
Write locks should be done now.
Modified makefile

Tests updated to remove warnings.
Not all tests pass currently.


git-svn-id: file:///svn/tokudb@2031 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 18:24:15 +00:00
Yoni Fogel
94178c228b Updated makefile
git-svn-id: file:///svn/tokudb@2030 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 18:22:19 +00:00
Yoni Fogel
97f4c9adb6 Removed all warnings.
git-svn-id: file:///svn/tokudb@2020 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 15:22:45 +00:00
Yoni Fogel
f42468b298 Addresses #293
Updated code based on review,
updated Makefile

git-svn-id: file:///svn/tokudb@2018 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 14:57:56 +00:00
Yoni Fogel
5bc95c44c9 Addresses #284
Updated Makefile


git-svn-id: file:///svn/tokudb@2017 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 14:57:30 +00:00
Rich Prohaska
84e4c0db01 rename the mysql aker scripts
git-svn-id: file:///svn/tokudb@2015 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 14:31:38 +00:00
Yoni Fogel
401c82a7c7 Explicitly cast val.len
to size_t (unsigned) to remove a warning.

git-svn-id: file:///svn/tokudb@2014 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 13:47:22 +00:00
Rich Prohaska
6dbdfb836c addresses #126
git-svn-id: file:///svn/tokudb@2006 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-01 01:38:11 +00:00
Yoni Fogel
f8f97b92fb Addresses #293
More implementation of write lock

git-svn-id: file:///svn/tokudb@2005 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 22:30:21 +00:00
Bradley C. Kuszmaul
764ebe504c Stop valgrind for some more bdb tests. Addresses #328.
git-svn-id: file:///svn/tokudb@2004 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 22:19:39 +00:00
Bradley C. Kuszmaul
59c1eafaa1 Stop valgrind for some more bdb tests. Addresses #328.
git-svn-id: file:///svn/tokudb@2003 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 22:16:24 +00:00
Bradley C. Kuszmaul
885e0bbb2e Put all the child info into one struct. Addresses #126.
git-svn-id: file:///svn/tokudb@2002 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 22:05:43 +00:00
Bradley C. Kuszmaul
809fcd793e Stop valgrind for some more bdb tests. Fixes #328.
git-svn-id: file:///svn/tokudb@2001 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 22:04:56 +00:00
Vincenzo Liberatore
1e3b4ae2cc Addresses #293
Checkpoint and write lock implementation.

git-svn-id: file:///svn/tokudb@2000 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 21:23:00 +00:00
Vincenzo Liberatore
50a9057eec #Addresses #311
Clean up the doxy comments.

git-svn-id: file:///svn/tokudb@1999 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 17:01:41 +00:00
Vincenzo Liberatore
9d2d9c77a1 #Addresses 311.
git-svn-id: file:///svn/tokudb@1997 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 16:47:56 +00:00
Vincenzo Liberatore
853085519c #Addresses 293
Write lock implementation.

git-svn-id: file:///svn/tokudb@1996 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 16:41:39 +00:00
Vincenzo Liberatore
2be274e3e7 Addresses #307
Tests consolidation of various intervals, some overlapping at one point,
other ones dominated by the new interval, and combinations of these cases.

git-svn-id: file:///svn/tokudb@1995 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 16:24:16 +00:00
Yoni Fogel
27e80df5f8 Addresses #288
Adds include directories for Range tree test makefile

git-svn-id: file:///svn/tokudb@1993 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 15:40:58 +00:00
Vincenzo Liberatore
ec547b3513 Address #307
Adds appropriate include directory to the tests Makefile

git-svn-id: file:///svn/tokudb@1992 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 15:36:18 +00:00
Yoni Fogel
66c905c9af Addresses #288
Assumption of commutativity of cmp function is implicit.
No testing is done.

git-svn-id: file:///svn/tokudb@1990 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 15:23:44 +00:00
Rich Prohaska
9ab36d5f25 get brt-test working or fix the nonleaf_split fifo_init bug
git-svn-id: file:///svn/tokudb@1989 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 14:58:14 +00:00
Bradley C. Kuszmaul
3266e6d20c db-benchmark-test now recovers OK. Addresses #27.
git-svn-id: file:///svn/tokudb@1988 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 14:52:52 +00:00
Rich Prohaska
40bf7ef8b2 assert test for brt-test crash
git-svn-id: file:///svn/tokudb@1985 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 13:40:47 +00:00
Bradley C. Kuszmaul
dfa900f962 Get rid of broken printfs. Addresses #27.
git-svn-id: file:///svn/tokudb@1984 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 13:31:45 +00:00
Bradley C. Kuszmaul
a615e968d0 A tool for only printing the first few columns
git-svn-id: file:///svn/tokudb@1983 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-31 13:03:35 +00:00
Yoni Fogel
0577b98ac7 Addresses #307
Additional tests.
Code coverage of non-write stuff is complete except for asserts and error cases.
We have not yet checked branch coverage.

git-svn-id: file:///svn/tokudb@1973 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-30 21:35:31 +00:00
Yoni Fogel
4bdbce1c79 Makefile updates
git-svn-id: file:///svn/tokudb@1972 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-30 21:34:49 +00:00
Yoni Fogel
c7ef6951ca Addresses #293
- Lock tree takes parameter of a db panic function, defers to it in panic
  situations.
- Code reorganization due to code reviews
- DBT consistency is assumed (should be EINVAL at higher level)




git-svn-id: file:///svn/tokudb@1971 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-30 21:34:22 +00:00
Bradley C. Kuszmaul
1dc9085fab Improve logging on node splits. Addresses #27.
git-svn-id: file:///svn/tokudb@1970 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-30 21:23:01 +00:00
Bradley C. Kuszmaul
5ee687abc8 Improve an error message. Addresses #168.
git-svn-id: file:///svn/tokudb@1969 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-30 21:15:11 +00:00
Bradley C. Kuszmaul
25c9d850cb BDB can run db_donotindex without trouble now. Addresses #322/
git-svn-id: file:///svn/tokudb@1965 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-30 14:09:14 +00:00
Bradley C. Kuszmaul
82e195e64d Don't double free. Addresses #322.
git-svn-id: file:///svn/tokudb@1964 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-30 14:06:46 +00:00