Bradley C. Kuszmaul
25e613344d
Move junk to .junk. Addresses #162 .
...
git-svn-id: file:///svn/tokudb@1077 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 14:43:00 +00:00
Bradley C. Kuszmaul
49819f43ff
After getting rid of the duplicate keys, there is no bug found by test_db_curs4
...
git-svn-id: file:///svn/tokudb@1075 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 14:40:32 +00:00
Bradley C. Kuszmaul
f80b5ebcf8
Clean up the way cursors are handled. This code shows that something is freed that shouldn't be. Addresses #162 .
...
git-svn-id: file:///svn/tokudb@1073 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 12:15:57 +00:00
Bradley C. Kuszmaul
49a904ea1f
Cut off the uninteresting tail of the traces. Addresses #162 .
...
git-svn-id: file:///svn/tokudb@1072 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 11:21:44 +00:00
Bradley C. Kuszmaul
735669ad58
Do some extra checks. Addresses #162 .
...
git-svn-id: file:///svn/tokudb@1071 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 11:20:03 +00:00
Bradley C. Kuszmaul
3e5d772aca
Shortened the string as much as I could
...
git-svn-id: file:///svn/tokudb@1070 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 11:16:40 +00:00
Bradley C. Kuszmaul
9797268da5
Shorten the name strings (but cannot shorten them all without encountering a BDB bug. Addresses #162 .
...
git-svn-id: file:///svn/tokudb@1069 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 11:03:29 +00:00
Bradley C. Kuszmaul
7cac629817
Simplify further. Addresses #162 .
...
git-svn-id: file:///svn/tokudb@1068 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 10:51:02 +00:00
Bradley C. Kuszmaul
fab0a6aa16
Get rid of random seeds. Addresses #162 .
...
git-svn-id: file:///svn/tokudb@1067 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 10:27:30 +00:00
Bradley C. Kuszmaul
b5ca65fe2e
Get rid of random seeds. Addresses #162 .
...
git-svn-id: file:///svn/tokudb@1066 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 10:26:42 +00:00
Bradley C. Kuszmaul
04d6f31073
Get rid of a bunch of unused code. For example, no longer relies on random. Addresses #162 .
...
git-svn-id: file:///svn/tokudb@1065 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 10:25:23 +00:00
Bradley C. Kuszmaul
e251c5cbed
Start changing timestamp to 1 byte instead of 8. Addresses #162 .
...
git-svn-id: file:///svn/tokudb@1064 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 10:11:15 +00:00
Bradley C. Kuszmaul
868a5dd8b8
Shorten the trace. Addresses #162 .
...
git-svn-id: file:///svn/tokudb@1063 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 10:07:14 +00:00
Bradley C. Kuszmaul
be6b85b01c
We now have divergent traces from BDB and TokuDB. Addreses #162 .
...
git-svn-id: file:///svn/tokudb@1060 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 01:19:26 +00:00
Bradley C. Kuszmaul
b756f84dc1
c4.tdb runs, but c4.bdb returns EINVAL for a DB->put. I don't get it. Addresses #162
...
git-svn-id: file:///svn/tokudb@1059 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 23:04:44 +00:00
Yoni Fogel
1b54221c1b
Added -u option
...
Reordered options
Set default numkeys of 1024
Fixed usage()
Addresses #52
git-svn-id: file:///svn/tokudb@1058 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 22:33:38 +00:00
Bradley C. Kuszmaul
e6e47e5e8c
test_db_curs4 is good, but too much randomness
...
git-svn-id: file:///svn/tokudb@1057 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 22:32:30 +00:00
Yoni Fogel
e7f3e45173
First draft of man page for tokudb_gen
...
git-svn-id: file:///svn/tokudb@1056 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 22:32:24 +00:00
Yoni Fogel
a5b31b2631
first draft of tokudb_load manual
...
Addresses #52
git-svn-id: file:///svn/tokudb@1055 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 21:49:00 +00:00
Yoni Fogel
bc5f641292
Removed old comment.
...
Fixed usage.
Addresses #149
git-svn-id: file:///svn/tokudb@1054 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 21:40:56 +00:00
Yoni Fogel
0324f47d2b
Changed some ignored flags to unsupported
...
tokudb_load handles signals now.
Addresses #149
git-svn-id: file:///svn/tokudb@1052 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 21:37:06 +00:00
Yoni Fogel
99e2c4e167
Moved sending signals to after finishing cleanup.
...
Addresses #149
git-svn-id: file:///svn/tokudb@1051 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 21:32:38 +00:00
Yoni Fogel
21f8e1b3d3
reordered getopt args in tokudb_load.c
...
addresses #149
git-svn-id: file:///svn/tokudb@1050 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 21:19:21 +00:00
Yoni Fogel
b45c72995b
Reordered getopt string and added missing T option
...
git-svn-id: file:///svn/tokudb@1049 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 21:15:21 +00:00
Yoni Fogel
e584e9b889
Removed 'pagesize' from tokudb_gen
...
Addresses #149
git-svn-id: file:///svn/tokudb@1048 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 21:02:09 +00:00
Yoni Fogel
93a6b1d5fd
Update the tokudb_dump man page. Addresses #52
...
git-svn-id: file:///svn/tokudb@1047 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 20:52:45 +00:00
Yoni Fogel
b1e6d85b17
tokudb_dump handles signals without corrupting db
...
git-svn-id: file:///svn/tokudb@1045 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 20:51:27 +00:00
Yoni Fogel
2ef7951f09
Ported makefile to OSX
...
git-svn-id: file:///svn/tokudb@1044 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 20:51:16 +00:00
Yoni Fogel
55e7463390
Modified usage text
...
git-svn-id: file:///svn/tokudb@1042 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 19:44:29 +00:00
Yoni Fogel
0c42d5945f
Re-ordered options
...
git-svn-id: file:///svn/tokudb@1041 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 19:42:02 +00:00
Yoni Fogel
ee6adf0998
NULL homedir is acceptable now.
...
git-svn-id: file:///svn/tokudb@1040 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 19:31:47 +00:00
Yoni Fogel
123dd77a8f
c_pget makes certain never to touch original parameters until/unless success happens.
...
Code is cleaner now with less special cases, handles DB_DBT_(MALLOC|REALLOC|USERMEM) as well as no flags now.
Closes #144
git-svn-id: file:///svn/tokudb@1037 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 18:54:12 +00:00
Bradley C. Kuszmaul
a6736215c4
seeing the problem with {{{make && ./test_db_curs2.tdb 1 && ./test_db_curs2.tdb 1 --more}}}. Addresses #162 .
...
git-svn-id: file:///svn/tokudb@1036 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 18:34:38 +00:00
Bradley C. Kuszmaul
06dd703781
Somehow messed up. Start over trying to recreate the problem. Addresses #162 .
...
git-svn-id: file:///svn/tokudb@1035 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 17:10:53 +00:00
Yoni Fogel
012f706b67
DB_DBT_(MALLOC|REALOC|USERMEM) now behave the same as BDB.
...
We never touch ulen. If DB_DBT_USERMEM and ulen is too small, we set size, (do not write anything)
and return DB_BUFFER_SMALL.
This includes test_db_dbt_mem_behavior.c
Closes #146
git-svn-id: file:///svn/tokudb@1034 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 17:04:02 +00:00
Bradley C. Kuszmaul
7b6b48673d
Removing a bunch of ops, and still have it with
...
make && ./test_db_cursor.tdb && ./test_db_cursor.tdb --more
Addresses #162 .
git-svn-id: file:///svn/tokudb@1033 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 15:58:21 +00:00
Rich Prohaska
3b5b5561c2
test case addresses #154
...
git-svn-id: file:///svn/tokudb@1032 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 15:41:31 +00:00
Bradley C. Kuszmaul
a112b6ee7f
Addresses #162 .
...
Simplified version has trouble if we change the line 402 to a 3 or a 2 then its bad or good to do:
make && ./test_db_cursor.tdb 1 && ./test_db_cursor.tdb 1 --more
git-svn-id: file:///svn/tokudb@1031 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 15:40:50 +00:00
Bradley C. Kuszmaul
596dfb8e5d
Start making a simpler version of the test. Addreses #162 .
...
git-svn-id: file:///svn/tokudb@1029 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 15:06:50 +00:00
Bradley C. Kuszmaul
d72309c626
Use the seed in the right way
...
git-svn-id: file:///svn/tokudb@1028 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 14:57:04 +00:00
Bradley C. Kuszmaul
11ab266bc7
test_db_assoc3 fails when delete happens
...
git-svn-id: file:///svn/tokudb@1027 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 13:23:08 +00:00
Bradley C. Kuszmaul
2d351ec3d4
mixing toku_malloc and malloc is not a problem. At least with BUFFERED_MALLOC not defined. Added a test, and a {{{#error}}} inside {{{memory.c}}}. Fixes #161 .
...
git-svn-id: file:///svn/tokudb@1026 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 11:28:00 +00:00
Yoni Fogel
6e9a2579a6
Free any memory caused by DB_DBT_MALLOC
...
and pruning stale records in secondary databases.
Closes #144
Closes #158
Fixed bug where we modify key or pkey or data if we return errors and
we really just pruned stale records.
Added test to verify we have no memory leaks caused by these issues.
git-svn-id: file:///svn/tokudb@1019 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-08 01:11:09 +00:00
Bradley C. Kuszmaul
6a3b4d643b
Recompute the fingerprint for DBC->c_del(). Fixes #154 .
...
git-svn-id: file:///svn/tokudb@1017 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 22:27:52 +00:00
Bradley C. Kuszmaul
e9a50167b0
Add a strerror for DB_BADFORMAT. Addresses #156 .
...
git-svn-id: file:///svn/tokudb@1016 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 22:27:04 +00:00
Bradley C. Kuszmaul
1a25a9c0d6
c_del is breaking things. Addresse #134 .
...
git-svn-id: file:///svn/tokudb@1015 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 20:57:05 +00:00
Rich Prohaska
67564afc2c
add test case. closes #153
...
git-svn-id: file:///svn/tokudb@1014 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 20:41:36 +00:00
Rich Prohaska
55243e2e18
use DB_KEYEMPTY not BRT_KEYEMPTY. addresses #153
...
git-svn-id: file:///svn/tokudb@1013 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 20:32:59 +00:00
Bradley C. Kuszmaul
0b86108b7f
db_assoc3 is doing more. It returns -3 which it shouldn't
...
git-svn-id: file:///svn/tokudb@1012 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 20:16:56 +00:00
Rich Prohaska
4e75ca728c
build bins for tokudb and bdb. closes #147
...
git-svn-id: file:///svn/tokudb@1008 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 19:18:21 +00:00