Commit graph

562 commits

Author SHA1 Message Date
Rich Prohaska
b8a3e92d35 add c_put. addresses #15
git-svn-id: file:///svn/tokudb@1122 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-13 21:41:57 +00:00
Rich Prohaska
d4a306799b add comment addresses #157
git-svn-id: file:///svn/tokudb@1118 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-13 19:37:11 +00:00
Rich Prohaska
7f55362822 make tokudb->set_flags compatible with bdb->set_flags. closes #157
git-svn-id: file:///svn/tokudb@1116 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-13 15:43:03 +00:00
Rich Prohaska
edbc8caf14 test flags param in db->cursor. addresses #89
git-svn-id: file:///svn/tokudb@1115 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-13 15:15:30 +00:00
Rich Prohaska
8d098df137 cursor->del clears pivots if last match. closes #159
git-svn-id: file:///svn/tokudb@1114 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-13 14:53:18 +00:00
Rich Prohaska
e369366145 fix compile problems
git-svn-id: file:///svn/tokudb@1105 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-12 19:08:05 +00:00
Bradley C. Kuszmaul
bb1933d0dd Add license and copyright. Fixes #151.
git-svn-id: file:///svn/tokudb@1100 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-12 16:32:57 +00:00
Bradley C. Kuszmaul
cad4727404 #162 appears not to be a bug. (It's a bug in the test program.) Fixes #162.
We have tests for DB->associate().  Fixes #61.

assoc3 is a proto-amazon application.  Fixes #134.

There is a problem in the assoc3 test (References #175.)

Warning:  It helps to always use {{{DB_DUP}}} for associated secondary indices.  BDB and TokUDB will both corrupt things if you accidently insert a duplicate without {{{DB_DUP}}}.

DB->associate() appears to work.  Fixes #48.


git-svn-id: file:///svn/tokudb@1096 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-12 15:52:33 +00:00
Bradley C. Kuszmaul
5c316e0c35 Make the test_db_assoc3 test more repeatable.
* Use separate random number generator instead of the one that tokudb uses.
 * Don't use gettimeofday.  Instead look through the timestamps and use 1+ the max of the previous timestamps.  Increment whenever we need a new one.
 * Create a make rule to test it:  Do {{{make test_db_assoc3.tdbrun}}}
Addresses #162.


git-svn-id: file:///svn/tokudb@1095 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-12 15:38:21 +00:00
Rich Prohaska
83613e1e9a restore -O2 default
git-svn-id: file:///svn/tokudb@1094 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-12 15:35:53 +00:00
Rich Prohaska
4ebaea564a add DB_UNKNOWN. addresses #166
git-svn-id: file:///svn/tokudb@1093 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-12 15:33:46 +00:00
Rich Prohaska
12c89f3095 change 17 to 9 and the test works
git-svn-id: file:///svn/tokudb@1089 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-12 00:26:08 +00:00
Yoni Fogel
a3cf241f96 Added additional error code in toku_deserialize_brtheader_from,
and toku_brt_open.
Files that fail assertions when loading the db, will now return EINVAL instead of assert-crashing.

Closes #160
Trying to open bdb db files does not cause us to crash anymore.

git-svn-id: file:///svn/tokudb@1087 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 20:03:12 +00:00
Yoni Fogel
7331e46492 Added DB_UNKNOWN to db.h
You can use DB_UNKNOWN as a dbtype (as long as you don't use DB_EXCL) in dbopen,
and then it will load the flags from the file.

tokudb_dump
    Now supports duplicates/sorted duplicates.
tokudb_load will give a warning about any duplicate duplicate loads
    but will continue with the rest of the data.

Closes #148
Closes #166

git-svn-id: file:///svn/tokudb@1086 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 19:34:21 +00:00
Yoni Fogel
b446f09beb Added DB->get_flags to db_create and added toku_db_get_flags
Addresses #166

git-svn-id: file:///svn/tokudb@1085 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 18:58:42 +00:00
Rich Prohaska
feb39edc30 add get_flags. addresses #166
git-svn-id: file:///svn/tokudb@1084 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 18:52:12 +00:00
Yoni Fogel
3bbf5c9a5d DB->set_flags is now additive.
Closes #165

git-svn-id: file:///svn/tokudb@1083 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 18:46:47 +00:00
Yoni Fogel
5d4ed64c3e Used PRI macros to remove warnings in printf statements
Addresses #172

git-svn-id: file:///svn/tokudb@1082 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 17:28:38 +00:00
Yoni Fogel
2771c16130 Port to linux. Closes #172
git-svn-id: file:///svn/tokudb@1081 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 17:00:24 +00:00
Bradley C. Kuszmaul
8de7c053b0 db_assoc3 is crashing
git-svn-id: file:///svn/tokudb@1079 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 16:55:28 +00:00
Rich Prohaska
64cc1bceee get working with multiple BDB releases. addresses #133
git-svn-id: file:///svn/tokudb@1078 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 14:53:18 +00:00
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