Yoni Fogel
82c9ba262b
DB->get and DB->pget had repeated very similar code.
...
DB->get (on secondary indexes) now call DB->pget instead of having almost identical code.
git-svn-id: file:///svn/tokudb@903 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-03 19:11:08 +00:00
Yoni Fogel
6a846a87ae
DB->associate no longer allows primary dbs to support duplicates
...
Closes #111
git-svn-id: file:///svn/tokudb@896 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-03 16:38:58 +00:00
Rich Prohaska
49410dd68c
test cursor DB_CURRENT. addresses #48
...
git-svn-id: file:///svn/tokudb@894 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-03 13:56:17 +00:00
Yoni Fogel
81981d003b
logformat is run before other prerequisites
...
so newbrt/log_header.h and newbrt/log_code.c are generated even if missing.
Closes #60 .
git-svn-id: file:///svn/tokudb@891 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-03 05:21:28 +00:00
Yoni Fogel
68e02ebb0c
{{{
...
Added DB_SECONDARY_BAD to db.h
Added DB_CURRENT to db.h
DB->get (now returns DB_SECONDARY_BAD when appropriate)
DB->pget (now returns DB_SECONDARY_BAD when appropriate)
** DBC->c_get (works with associate)
** DBC->c_pget (added function, works with associate, but not in header yet)
** *DBC->c_del (works with associate)
*DB->del (works with associate)
* May not work properly with duplicates.
* Question: Do I have to use
search_val.flags = DB_DBT_MALLOC;
and
free(search_val.data);
** Requires DB_CURRENT to be supported in toku_brt_cursor_get
}}}
addresses #48
git-svn-id: file:///svn/tokudb@890 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-03 05:01:43 +00:00
Yoni Fogel
46907c25ed
Prevent DB->put from working on secondary indexes
...
(unless called internally with DB_NO_ASSOCIATE flag set)
Modified test_db_secondary to verify this behavior.
Closes #106
git-svn-id: file:///svn/tokudb@888 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-03 02:18:48 +00:00
Yoni Fogel
5b7b4df07c
Port Makefile to OSX. Closes #105
...
git-svn-id: file:///svn/tokudb@887 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-03 01:59:46 +00:00
Rich Prohaska
1f19feab4c
move the crash from deep in tokudb to the app. addresses #48
...
git-svn-id: file:///svn/tokudb@874 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-01 21:06:02 +00:00
Rich Prohaska
b7f3b0be7e
remove reference to set_lk_max. addresses #104
...
git-svn-id: file:///svn/tokudb@872 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-01 17:45:53 +00:00
Rich Prohaska
b7b40fc87d
flush buffers when a node has become too big after a child split. closes #51
...
git-svn-id: file:///svn/tokudb@867 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-01 13:12:56 +00:00
Bradley C. Kuszmaul
18afd50585
make secondary work a little longer. Addresses #48 .
...
git-svn-id: file:///svn/tokudb@863 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 18:07:11 +00:00
Rich Prohaska
606ece947b
closes #46
...
git-svn-id: file:///svn/tokudb@861 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 16:49:00 +00:00
Bradley C. Kuszmaul
4287319144
Use CKERR in the associate test. Addresses #48 .
...
git-svn-id: file:///svn/tokudb@859 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 15:52:11 +00:00
Bradley C. Kuszmaul
8fbc47e74c
Fix a memory leak in the test. Addresses #101 .
...
git-svn-id: file:///svn/tokudb@858 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 15:19:31 +00:00
Bradley C. Kuszmaul
22d8e86bc9
Fix the DBT problem for duplicate keys. Fixes #101 .
...
git-svn-id: file:///svn/tokudb@857 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 15:17:37 +00:00
Bradley C. Kuszmaul
52b60202a5
Make a test for #101 . Addresses #101 .
...
git-svn-id: file:///svn/tokudb@856 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 14:50:40 +00:00
Rich Prohaska
17da9fee62
closes #100
...
git-svn-id: file:///svn/tokudb@854 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 14:31:37 +00:00
Rich Prohaska
f55c35c30e
add make check. addresses #74
...
git-svn-id: file:///svn/tokudb@853 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 12:46:49 +00:00
Bradley C. Kuszmaul
8783de7c3d
Turn on -O2 again
...
git-svn-id: file:///svn/tokudb@851 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 07:14:26 +00:00
Bradley C. Kuszmaul
4c0534950b
Rebuild {{{newbrt/log_header.h}}} and {{{newbrt/log_code.c}}} when compiled from withing {{{src}}}. Fixes #60 .
...
git-svn-id: file:///svn/tokudb@850 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 06:58:00 +00:00
Bradley C. Kuszmaul
9a8fd72c7e
associate implemented up to a point: put works, get doesn't. Addresses #48 .
...
git-svn-id: file:///svn/tokudb@848 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 06:27:49 +00:00
Bradley C. Kuszmaul
4d38445d03
Add suppressions (generated by --gen-suppressions=all) Some messages just won't suppress, so we had to keep them away. Fixes #98 .
...
git-svn-id: file:///svn/tokudb@847 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 06:09:13 +00:00
Rich Prohaska
0cb6474b8c
check for globals in the lib that are not prefixed with toku. addresses #74
...
git-svn-id: file:///svn/tokudb@844 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 02:33:54 +00:00
Bradley C. Kuszmaul
d71d3efc80
Turn on unused variable warnings. Fixes #92 .
...
git-svn-id: file:///svn/tokudb@841 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 22:08:58 +00:00
Bradley C. Kuszmaul
91dfa98ef2
Add copyright. Addresses #54 .
...
git-svn-id: file:///svn/tokudb@840 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 22:08:24 +00:00
Rich Prohaska
be7474282c
add key and data size limit check in db->put. closes #50
...
git-svn-id: file:///svn/tokudb@832 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 19:32:53 +00:00
Rich Prohaska
18706752a6
add key and data size limit check in db->put. closes #50
...
git-svn-id: file:///svn/tokudb@831 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 19:28:48 +00:00
Bradley C. Kuszmaul
df410defa7
Rename the last bunch of symbols to toku_symbols. Closes #8 .
...
git-svn-id: file:///svn/tokudb@829 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 18:14:40 +00:00
Bradley C. Kuszmaul
9f54dcef61
Rename a bunch of symbols to toku_symbols. Addresses #8 .
...
git-svn-id: file:///svn/tokudb@823 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 15:09:14 +00:00
Bradley C. Kuszmaul
6b2f1c61b7
Rename a bunch of symbols to toku_symbols. Addresses #8 .
...
git-svn-id: file:///svn/tokudb@822 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 14:44:03 +00:00
Bradley C. Kuszmaul
6558a03ecb
Add copyrights using #ident in the src and src/tests dirs. Addresses #54 .
...
git-svn-id: file:///svn/tokudb@818 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 14:21:46 +00:00
Yoni Fogel
aea1b4c69d
Data is padded with spaces instead of 0-filled
...
for test_db_secondary
Addresses #68
git-svn-id: file:///svn/tokudb@812 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 01:52:14 +00:00
Yoni Fogel
528663a292
Added test_db_secondary
...
Closes #68
git-svn-id: file:///svn/tokudb@811 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 01:46:52 +00:00
Rich Prohaska
dd6d25803f
addresses #49
...
git-svn-id: file:///svn/tokudb@808 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 21:40:41 +00:00
Rich Prohaska
64dbec8b77
implement db->del as a lookup followed by a delete to match BDB del return value. also implemented a tokutek flag that suppresses the return value. closes #45
...
git-svn-id: file:///svn/tokudb@806 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 20:47:21 +00:00
Bradley C. Kuszmaul
ca6ac478ef
A bunch of symbols that don't start with toku_ are made static or start with toku_. Addresses #8 .
...
git-svn-id: file:///svn/tokudb@802 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 19:14:58 +00:00
Bradley C. Kuszmaul
e4dcc3e9f8
A bunch of symbols that don't start with toku_ are made static or start with toku_. Addresses #8 .
...
git-svn-id: file:///svn/tokudb@801 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 19:09:24 +00:00
Yoni Fogel
6d82cfad4d
Made test_env_close_flags work with bdb
...
addresses #16
git-svn-id: file:///svn/tokudb@798 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 17:22:01 +00:00
Yoni Fogel
fd47d05e12
Suppress output if not in verbose mode
...
git-svn-id: file:///svn/tokudb@797 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 17:16:40 +00:00
Yoni Fogel
5c04982f40
Follow bdb behavior more closely
...
Default to '.' if we use DB_USE_ENVIRON (or root version) and DB_HOME is not set.
closes #59
git-svn-id: file:///svn/tokudb@793 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 17:12:13 +00:00
Yoni Fogel
8fb3002f43
NULL home to dbenv now defaults to '.' instead of
...
EINVAL.
addresses #59
git-svn-id: file:///svn/tokudb@792 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 17:08:45 +00:00
Rich Prohaska
9225809fcf
addresses #45
...
git-svn-id: file:///svn/tokudb@785 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 15:10:16 +00:00
Yoni Fogel
f40ba83d2f
Default env directory is '.'
...
Add support for DB_USE_ENVIRON and DB_USE_ENVIRON_ROOT
git-svn-id: file:///svn/tokudb@783 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 14:50:09 +00:00
Rich Prohaska
15597e699e
use BDBDIR variable for multiple BDB builds. addresses #49
...
git-svn-id: file:///svn/tokudb@778 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 00:44:04 +00:00
Rich Prohaska
472ae66e36
test case for tokudb handle split of child crash. addresses #51
...
git-svn-id: file:///svn/tokudb@775 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 22:18:40 +00:00
Rich Prohaska
25163189be
use BDB var to control bdb releases. addresses #49
...
git-svn-id: file:///svn/tokudb@774 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 22:17:51 +00:00
Rich Prohaska
7f8a7cd084
test case for tokudb handle split of child crash. addresses #51
...
git-svn-id: file:///svn/tokudb@772 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 20:56:56 +00:00
Bradley C. Kuszmaul
9da9621873
Stop passing DB* everywhere. Instead store it in the BRT and PMA structs. Fixes #39 .
...
git-svn-id: file:///svn/tokudb@761 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 21:51:36 +00:00
Yoni Fogel
acf13b93bb
db_create returns EINVAL on any flags. Fixes #36
...
git-svn-id: file:///svn/tokudb@756 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 16:28:00 +00:00
Rich Prohaska
d345db0551
Addresses #19
...
git-svn-id: file:///svn/tokudb@754 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 15:26:47 +00:00