Commit graph

606 commits

Author SHA1 Message Date
Rich Prohaska
ccfa1a651a remove debug code
git-svn-id: file:///svn/tokudb@1185 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 11:57:59 +00:00
Yoni Fogel
58fd7e37fc Additional tests for c_put
Show that the key parameter is not only ignored, but never accessed nor written to
when flags == DB_CURRENT
Closes #15

Removed comments asking for this test.

git-svn-id: file:///svn/tokudb@1183 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 02:37:12 +00:00
Yoni Fogel
f945194b94 Added tests for c_put
Addresses #15

git-svn-id: file:///svn/tokudb@1181 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 02:23:29 +00:00
Yoni Fogel
e7d13a1a73 Added a comment to c_put
git-svn-id: file:///svn/tokudb@1180 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 02:21:34 +00:00
Bradley C. Kuszmaul
89e92ad386 More fiddling around with c++. Addresses #197.
git-svn-id: file:///svn/tokudb@1179 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 01:52:52 +00:00
Bradley C. Kuszmaul
60d70631a3 More fiddling around with c++. Addresses #197.
git-svn-id: file:///svn/tokudb@1178 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 01:44:22 +00:00
Bradley C. Kuszmaul
686d25d567 More fiddling around with c++. Addresses #197.
git-svn-id: file:///svn/tokudb@1177 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 01:31:34 +00:00
Bradley C. Kuszmaul
bf69b71745 test1 compiles
git-svn-id: file:///svn/tokudb@1176 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 00:57:28 +00:00
Bradley C. Kuszmaul
a58dc6af93 Start trying to write a c++ interface. Addresses #197.
git-svn-id: file:///svn/tokudb@1175 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 22:00:54 +00:00
Bradley C. Kuszmaul
d7319d8d19 texify DB->open man page. Addresses #52.
git-svn-id: file:///svn/tokudb@1174 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 22:00:26 +00:00
Rich Prohaska
feeff730d7 test for cursor stickyness. addresses #196
git-svn-id: file:///svn/tokudb@1173 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 21:34:58 +00:00
Bradley C. Kuszmaul
0b8f56fa9c texify DB->open man page. Addresses #52.
git-svn-id: file:///svn/tokudb@1172 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 21:28:44 +00:00
Bradley C. Kuszmaul
d99cd30548 Work on DB->put man page. Addresses #52.
git-svn-id: file:///svn/tokudb@1171 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 18:59:55 +00:00
Bradley C. Kuszmaul
8390854489 Start moving tdb_put to texi. Addresses #52.
git-svn-id: file:///svn/tokudb@1169 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 18:20:12 +00:00
Bradley C. Kuszmaul
95baba7ef8 Clarify DB_DELETE_ANY. Addresses #52.
git-svn-id: file:///svn/tokudb@1168 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 18:18:25 +00:00
Bradley C. Kuszmaul
aaa0b820bd Convert tdb_del to texi. Addresses #52.
git-svn-id: file:///svn/tokudb@1167 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 17:57:46 +00:00
Yoni Fogel
1f6fb8627f Addresses #180
test_db_assert_einval.c renamed to test_db_get_put_flags.c

git-svn-id: file:///svn/tokudb@1166 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 17:53:35 +00:00
Yoni Fogel
14ff121e79 Addresses #180
Tests for DB_GET_BOTH with DUPSORT and no DUPSORT.

git-svn-id: file:///svn/tokudb@1165 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 17:53:02 +00:00
Yoni Fogel
1c918c44c8 addresses #180
Support DB_GET_BOTH for dbs without DUPSORT.
Also modified test_db_assert_einval to validate the changes.

git-svn-id: file:///svn/tokudb@1164 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 17:46:39 +00:00
Yoni Fogel
daaf8751e3 Replaced some BDB api call parameter checking asserts
with return EINVAL
Addresses #194

git-svn-id: file:///svn/tokudb@1163 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 17:38:22 +00:00
Bradley C. Kuszmaul
3a6185478c Remove tdb_create.3 (adding it to .junk) since the texi man pages are starting to get ready to go. Addresse #52.
git-svn-id: file:///svn/tokudb@1162 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 17:24:46 +00:00
Bradley C. Kuszmaul
a6c9e7b9f6 Move texi from doc to man. Addresses #52.
git-svn-id: file:///svn/tokudb@1161 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 17:23:13 +00:00
Bradley C. Kuszmaul
14a3707f5f The names were sometimes coming out with duplicates, which was confusing the comparison function.
Fix:  Make all the names unique by adding on the tod to the end of the name.
Fixes #175.


git-svn-id: file:///svn/tokudb@1159 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 17:13:23 +00:00
Yoni Fogel
467c07d5a1 Removed comments asking for test
Addresses #15

git-svn-id: file:///svn/tokudb@1158 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 17:10:42 +00:00
Rich Prohaska
c7283d799f pma_set now finds the leftmost non-deleted kv pair that matches the set key. closes #192
git-svn-id: file:///svn/tokudb@1157 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 17:09:54 +00:00
Bradley C. Kuszmaul
ad217c2273 Clean up usage() and initialize activity_count. Fixes #193.
git-svn-id: file:///svn/tokudb@1156 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 16:31:31 +00:00
Bradley C. Kuszmaul
586a2b7675 Get rid of test_db_curs3.c, which is derivitive from test_db_assoc3.c
git-svn-id: file:///svn/tokudb@1155 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 16:27:03 +00:00
Yoni Fogel
d89f277346 toku_db_put_noassociate will call
get_noassociate instead of get (in case we ever call this on a secondary db).
Addresses #180

git-svn-id: file:///svn/tokudb@1154 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 16:21:34 +00:00
Rich Prohaska
d984283041 implement and test cursor->get_both_range. addresses #187
git-svn-id: file:///svn/tokudb@1152 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 13:48:20 +00:00
Rich Prohaska
9290db6fcc unified the cursor search for cursor set, get_both, set_range, and get_both_range. still need to prune the search for some of these operations.
addresses  #186


git-svn-id: file:///svn/tokudb@1149 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 01:03:35 +00:00
Rich Prohaska
f28b2fedc1 there was a path through the pma_insert_or_replace function that did not set the replace_v_size parameter. this occurred when inserting a key that had been deleted with a cursor reference. closes #191
git-svn-id: file:///svn/tokudb@1148 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-16 20:57:35 +00:00
Rich Prohaska
57a54715c0 make DB_DUP and DB_NODUPDATA warnings not errors. addresses #189
git-svn-id: file:///svn/tokudb@1144 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-15 21:04:59 +00:00
Rich Prohaska
44df006735 after env->close is called the env handle is invalid. this implies that the close happens even if the flags param is non-zero. closes #190
git-svn-id: file:///svn/tokudb@1143 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-15 20:32:33 +00:00
Rich Prohaska
f0f3df1b58 closes #190
git-svn-id: file:///svn/tokudb@1139 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-14 23:04:31 +00:00
Rich Prohaska
9d1694a27b add db->put DB_YESOVERWRITE. addresses #180
git-svn-id: file:///svn/tokudb@1138 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-14 22:56:50 +00:00
Rich Prohaska
2a34c17d63 rollback r1135 update. not yet ready
git-svn-id: file:///svn/tokudb@1136 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-14 20:55:03 +00:00
Rich Prohaska
e61251778c fix cursor->get_both in a dupsort db. closes #185
git-svn-id: file:///svn/tokudb@1135 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-14 20:51:27 +00:00
Rich Prohaska
c380755d34 define DB_YESOVERWRITE. addresses #180
git-svn-id: file:///svn/tokudb@1133 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-14 14:26:22 +00:00
Rich Prohaska
8af05f08d6 set pma dupsort insert dup dup behaviour to replace. addresses #178
git-svn-id: file:///svn/tokudb@1132 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-14 13:18:47 +00:00
Rich Prohaska
1fb6403b07 remove unsort duplicates. closes #179
git-svn-id: file:///svn/tokudb@1128 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-14 00:49:46 +00:00
Yoni Fogel
af88312df7 Initial implementation of DBC->c_pget
Still requires tests.
Addresses #15

git-svn-id: file:///svn/tokudb@1127 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-13 23:51:47 +00:00
Yoni Fogel
e2c4765562 Other dbs.h for DB_KEYFIRST, DB_KEYLAST
git-svn-id: file:///svn/tokudb@1126 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-13 23:38:15 +00:00
Yoni Fogel
9967b13ccc Added DB_KEYFIRST and DB_KEYLAST to db.h
git-svn-id: file:///svn/tokudb@1125 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-13 23:32:51 +00:00
Rich Prohaska
8667527f2d fix the test order. addresses #159
git-svn-id: file:///svn/tokudb@1124 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-13 22:25:24 +00:00
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