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
Bradley C. Kuszmaul
7d0c797ac8
DB->associate(..., DB_CREATE, ...) now appears to work.
...
There was a bug in brt.c which checked to see if the number of pinned pages is zero at the beginning of a lookup. With an open cursor, that doesn't have to be true.
Fixes #64 , #141 .
git-svn-id: file:///svn/tokudb@1007 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 19:02:03 +00:00
Rich Prohaska
2127f452f7
use tokutek db.h to compile. addresses #147
...
git-svn-id: file:///svn/tokudb@1006 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 18:52:21 +00:00
Yoni Fogel
7ae62892fc
Port to OSX/32bit architectures
...
git-svn-id: file:///svn/tokudb@1005 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 18:20:15 +00:00
Yoni Fogel
6880d604aa
moved dbt_init and dbt_init_malloc from most tests to test.h
...
git-svn-id: file:///svn/tokudb@1004 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 18:19:01 +00:00
Rich Prohaska
964dca79ef
fix the valgrind uninitialized value problem. closes #143
...
git-svn-id: file:///svn/tokudb@1001 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 15:22:11 +00:00
Bradley C. Kuszmaul
ed93d29d84
the prototypical amazon test does more (it compiles without dying or comitting. Addresses #134 .
...
git-svn-id: file:///svn/tokudb@1000 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 14:57:47 +00:00
Rich Prohaska
3258fa2ec1
define DB_NODUPDATA to get our bdb tests to compile. closes #142
...
git-svn-id: file:///svn/tokudb@999 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 14:57:13 +00:00
Bradley C. Kuszmaul
b5d08ff1b1
Make an association of 2 secondaries to a primary work. Fixes #137 .
...
git-svn-id: file:///svn/tokudb@998 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 14:56:54 +00:00
Bradley C. Kuszmaul
14d9e55b58
Implement DB_CREATE with DB->associate(). No testing yet. Addresses #141 .
...
git-svn-id: file:///svn/tokudb@997 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 12:27:48 +00:00
Bradley C. Kuszmaul
c19f4c2ba8
Make an association of 2 secondaries to a primary work.
...
git-svn-id: file:///svn/tokudb@996 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 12:05:13 +00:00
Yoni Fogel
a128e5129d
Closes #140
...
Test making certain we free any memory given to us that is flagged DB_DBT_APPMALLOC
git-svn-id: file:///svn/tokudb@992 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 00:46:26 +00:00
Yoni Fogel
639bc1d3a6
Typo fix in test_db_donitindex.c
...
git-svn-id: file:///svn/tokudb@991 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 00:39:34 +00:00
Yoni Fogel
effdfa88b9
git-svn-id: file:///svn/tokudb@990 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 00:08:18 +00:00
Yoni Fogel
bc3c049f0c
Removed property executable
...
git-svn-id: file:///svn/tokudb@989 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 00:07:56 +00:00
Yoni Fogel
6d302e48bb
Test for DB_DONOTINDEX
...
Closes #66
git-svn-id: file:///svn/tokudb@988 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 22:24:48 +00:00
Rich Prohaska
ca81799e42
start the load and dump man pages. addresses #52
...
git-svn-id: file:///svn/tokudb@987 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 21:56:59 +00:00
Rich Prohaska
e68794b6d0
move doc/man to tokudb/man. addresses #136
...
git-svn-id: file:///svn/tokudb@984 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 21:30:40 +00:00
Bradley C. Kuszmaul
3a073c1e17
Start moving more stuff out of dir. Addresses #126 .
...
git-svn-id: file:///svn/tokudb@982 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 20:58:45 +00:00
Rich Prohaska
6668583aad
add a checko2 target to verify OPTFLAGS. addresses #127
...
git-svn-id: file:///svn/tokudb@981 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 20:52:23 +00:00
Rich Prohaska
d5d67736c6
use a handle count to drive the global destructors. closes #125
...
git-svn-id: file:///svn/tokudb@980 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 20:35:53 +00:00
Bradley C. Kuszmaul
6ab4529c91
Switch over the fingerprints to be in the subfield
...
git-svn-id: file:///svn/tokudb@977 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 19:16:18 +00:00
Rich Prohaska
4ccaaf0250
set h->dirty when h->unused_memory changes. closes #129
...
git-svn-id: file:///svn/tokudb@976 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 18:56:46 +00:00
Rich Prohaska
0f58ab6b26
test case for the crash. addresses #129
...
git-svn-id: file:///svn/tokudb@975 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 18:52:58 +00:00
Yoni Fogel
2c315009a1
Addresses #123
...
DB->pget uses dbc->c_pget, but needs to convert DB_KEYEMPTY to DB_NOTFOUND.
git-svn-id: file:///svn/tokudb@974 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 18:40:53 +00:00
Yoni Fogel
215d94f8fa
Addresses #123
...
DB->del deletes silently anything out of date.
If DB->del deletes everything silently (doesn't find anything that was not out of date), it returns DB_NOTFOUND
git-svn-id: file:///svn/tokudb@973 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 18:40:16 +00:00
Rich Prohaska
9a7cf6a1e9
align matrix to make it readable
...
git-svn-id: file:///svn/tokudb@972 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 18:27:25 +00:00
Yoni Fogel
cd5e8ec014
Removed a comment and added an error checking case for c_pget
...
Addresses #123
git-svn-id: file:///svn/tokudb@971 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 18:22:12 +00:00
Yoni Fogel
e95808a112
get, pget silently delete out of date entries.
...
Addresses #123
pget calls c_pget, get calls pget
git-svn-id: file:///svn/tokudb@970 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 18:11:19 +00:00
Rich Prohaska
10aff1ba69
test the cursor nonleaf node expand function. closes #119
...
git-svn-id: file:///svn/tokudb@969 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 17:46:16 +00:00
Yoni Fogel
3b7ed01dcd
Addresses #123
...
c_get will silently delete any out of date entries (relies on c_pget)
Replaced comment about unimplemented variable with #ifdef
git-svn-id: file:///svn/tokudb@968 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 17:44:55 +00:00