Bradley C. Kuszmaul
80b5a4758b
Add a comment. Addreses #180 .
...
git-svn-id: file:///svn/tokudb@1293 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 22:08:42 +00:00
Bradley C. Kuszmaul
62dc77b1c3
Add some more cases to test_db_get_put_flags.c. Addresess #180 .
...
git-svn-id: file:///svn/tokudb@1292 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 22:08:22 +00:00
Rich Prohaska
a60b4abb7a
add db_load.cpp. addresses #197
...
git-svn-id: file:///svn/tokudb@1291 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 19:52:26 +00:00
Yoni Fogel
d051561bcd
Added c++ functions:
...
DbEnv.set_data_dir, DbEnv.set_errpfx
Added tests for them.
Addresses #197
git-svn-id: file:///svn/tokudb@1290 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 19:43:42 +00:00
Yoni Fogel
67cedd5b6f
Added Db.set_bt_compare and Db.remove
...
test1 modified to test the new features.
git-svn-id: file:///svn/tokudb@1289 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 19:00:35 +00:00
Yoni Fogel
e669f58910
DB->remove (with no subdb) now correctly returns
...
error codes from unlink.
Modified test_db_remove_subdb to check for this.
Closes #211
git-svn-id: file:///svn/tokudb@1288 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 18:59:39 +00:00
Yoni Fogel
605ad57be1
Removed 'unused' attribute from a parameter actually used.
...
git-svn-id: file:///svn/tokudb@1287 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 18:46:36 +00:00
Yoni Fogel
a99ef3294e
rolled back mistaken portion of commit
...
git-svn-id: file:///svn/tokudb@1286 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 18:38:55 +00:00
Yoni Fogel
801be0bba4
Added Dbt.get_ulen and Dbt.set_ulen
...
Modified test1 to test new functions and some of the older ones.
Addresses #197
git-svn-id: file:///svn/tokudb@1285 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 18:38:29 +00:00
Yoni Fogel
24c2e857ab
Added Dbt.get_ulen and Dbt.set_ulen
...
Modified test1 to test new functions and some of the older ones.
Addresses #197
git-svn-id: file:///svn/tokudb@1284 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 18:34:33 +00:00
Yoni Fogel
7856a1f874
Lined up functions
...
git-svn-id: file:///svn/tokudb@1283 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 18:28:08 +00:00
Yoni Fogel
221c5ba9d3
Modifications for c_put and test_db_get_put_flags
...
to support 'flags==0 returns EINVAL for put on a dupsort db'
Addresses #180
Addresses #15
Addresses #194
git-svn-id: file:///svn/tokudb@1282 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 18:16:53 +00:00
Rich Prohaska
3ba63a3c99
add -lpthread to build with BDB 4.3. addresses #210
...
git-svn-id: file:///svn/tokudb@1280 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 15:21:21 +00:00
Bradley C. Kuszmaul
0c31bc0a83
the dupsort_get_both_range test now works under BDB. Addresses #187 .
...
git-svn-id: file:///svn/tokudb@1277 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 15:13:46 +00:00
Bradley C. Kuszmaul
eae8d4f12b
Make a 4.3 header. Addresses #210 .
...
git-svn-id: file:///svn/tokudb@1265 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 23:17:27 +00:00
Bradley C. Kuszmaul
acd947508a
Try sending this version of db_cxx.h to amazon and netapp. Addresses #133 , #203 .
...
git-svn-id: file:///svn/tokudb@1264 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 23:01:41 +00:00
Bradley C. Kuszmaul
1e96e2f4d5
The test_db_env_open_nocreate.c test was complaining when it didn't
...
really have a right to. It was creating the directory and then
calling {{{DB_ENV->open}}} without specifying {{{DB_CREATE}}} and then
complaining if the open was successful.
For BDB, the open is not successful because BDB has internal files it sets up.
TokuDB has no internal files (yet) because it only handles
{{{DB_PRIVATE}}} databases. Hence creating the directory is enough to
make TokuDB happy. And we're OK with that.
Addresses #209 .
git-svn-id: file:///svn/tokudb@1263 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 22:50:06 +00:00
Bradley C. Kuszmaul
276256b3e6
Print an error message for DB_PRIVATE missing, and make the test actually observe issue #209 (open works even when the dir doesn't exist but DB_CREATE is not specified). Addresses #208 , 209.
...
git-svn-id: file:///svn/tokudb@1262 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 22:38:10 +00:00
Bradley C. Kuszmaul
6530c1c216
Improve testing. Addresses #179 , #178 .
...
git-svn-id: file:///svn/tokudb@1261 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 21:38:15 +00:00
Bradley C. Kuszmaul
f31f24c237
Make set_errfile work. Fixes #72 .
...
git-svn-id: file:///svn/tokudb@1260 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 21:17:37 +00:00
Bradley C. Kuszmaul
382be29301
Add set_errfile to samples. Addresses #72 .
...
git-svn-id: file:///svn/tokudb@1259 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 21:13:47 +00:00
Bradley C. Kuszmaul
1169e1b546
Add set_errfile to samples. Addresses #72 .
...
git-svn-id: file:///svn/tokudb@1258 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 21:13:05 +00:00
Bradley C. Kuszmaul
13925e4e33
Add set_errfile to samples. Addresses #72 .
...
git-svn-id: file:///svn/tokudb@1257 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 21:11:58 +00:00
Bradley C. Kuszmaul
c56b9efd58
Add set_errfile to samples. Addresses #72 .
...
git-svn-id: file:///svn/tokudb@1256 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 21:11:42 +00:00
Bradley C. Kuszmaul
13fb0d3f90
Add set_errfile to samples. Addresses #72 .
...
git-svn-id: file:///svn/tokudb@1255 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 20:56:08 +00:00
Bradley C. Kuszmaul
6d2674c504
Add set_errfile to samples. Addresses #72 .
...
git-svn-id: file:///svn/tokudb@1254 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 20:55:53 +00:00
Bradley C. Kuszmaul
cf7c4505b9
Fix it up
...
git-svn-id: file:///svn/tokudb@1253 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 20:55:24 +00:00
Bradley C. Kuszmaul
692edf763f
Add set_errfile to samples. Addresses #72 .
...
git-svn-id: file:///svn/tokudb@1252 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 20:54:15 +00:00
Bradley C. Kuszmaul
f7ca267f00
Add set_errfile to samples. Addresses #72 .
...
git-svn-id: file:///svn/tokudb@1251 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 20:53:32 +00:00
Bradley C. Kuszmaul
81bbb47406
Add set_errfile to samples. Addresses #72 .
...
git-svn-id: file:///svn/tokudb@1250 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 20:52:40 +00:00
Bradley C. Kuszmaul
c788805fd3
Make cxx now works in bdb 4.5. Fixes #205 .
...
git-svn-id: file:///svn/tokudb@1238 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 16:57:11 +00:00
Bradley C. Kuszmaul
fb63c1e713
Add api_internal to other versions. Addresses #205 .
...
git-svn-id: file:///svn/tokudb@1237 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 16:54:03 +00:00
Bradley C. Kuszmaul
10c1d7583f
Add api_internal to other versions. Addresses #205 .
...
git-svn-id: file:///svn/tokudb@1236 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-19 16:52:49 +00:00
Rich Prohaska
615aa1ca25
disabled in the code until it works. addresses #187
...
git-svn-id: file:///svn/tokudb@1221 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 21:44:14 +00:00
Bradley C. Kuszmaul
b533ea01dd
Move db_cxx.h to include dir, and fix valgrind issues. Fixes #197 .
...
git-svn-id: file:///svn/tokudb@1218 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 20:39:02 +00:00
Rich Prohaska
a98f0cd111
change the db->put to require flags != 0. closes #180
...
git-svn-id: file:///svn/tokudb@1217 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 20:15:01 +00:00
Bradley C. Kuszmaul
683fd63c7e
Get rid of memory leaks found by valgrind. Addresses #197 .
...
git-svn-id: file:///svn/tokudb@1216 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 19:57:36 +00:00
Bradley C. Kuszmaul
6f7605553c
Improve accuracy of put documentation. Addresses #52 .
...
git-svn-id: file:///svn/tokudb@1215 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 19:50:09 +00:00
Bradley C. Kuszmaul
a1ede89ae2
We have a basic C++ interface. I'm going to call this finished, until we find out that more is needed. Fixes #197 .
...
git-svn-id: file:///svn/tokudb@1214 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 19:37:59 +00:00
Bradley C. Kuszmaul
94777979ee
Add api1_internal to DB_TXN (used in c++). Addresses #197 .
...
git-svn-id: file:///svn/tokudb@1213 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 19:35:26 +00:00
Bradley C. Kuszmaul
eb6a1dac20
Add api1_internal to DB_TXN (used in c++). Addresses #197 .
...
git-svn-id: file:///svn/tokudb@1212 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 19:35:09 +00:00
Bradley C. Kuszmaul
5e1b3e9814
Add api1_internal to DB_TXN (used in c++). Addresses #197 .
...
git-svn-id: file:///svn/tokudb@1211 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 19:29:33 +00:00
Bradley C. Kuszmaul
2421f980dd
Add api1_internal to DB_TXN (used in c++). Addresses #197 .
...
git-svn-id: file:///svn/tokudb@1210 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 19:28:53 +00:00
Bradley C. Kuszmaul
b2d393d8b6
Add api1_internal to env (used in c++). Addresses #197 .
...
git-svn-id: file:///svn/tokudb@1207 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 19:02:45 +00:00
Bradley C. Kuszmaul
01862ee902
Add api1_internal to env (used in c++). Addresses #197 .
...
git-svn-id: file:///svn/tokudb@1206 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 19:01:58 +00:00
Rich Prohaska
a7970a58d8
fix the mem leak. closes #199
...
git-svn-id: file:///svn/tokudb@1205 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 18:38:26 +00:00
Bradley C. Kuszmaul
4a1ff1e7ca
Make db_dump work. Addresses #197 .
...
git-svn-id: file:///svn/tokudb@1204 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 18:34:44 +00:00
Rich Prohaska
8ba5e8f89b
multi-bdb update. addresses #197
...
git-svn-id: file:///svn/tokudb@1202 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 18:29:32 +00:00
Bradley C. Kuszmaul
96a0bee699
Add db_dump.cpp to the cxx tests
...
git-svn-id: file:///svn/tokudb@1201 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 18:20:10 +00:00
Rich Prohaska
32e57a7811
shorten the tests. addresses #198
...
git-svn-id: file:///svn/tokudb@1199 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 17:04:36 +00:00