Bradley C. Kuszmaul
ad0a6695b5
add Db::del and Db::get and check that their exceptions are OK. Fixes #219 .
...
git-svn-id: file:///svn/tokudb@1335 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-23 01:25:54 +00:00
Bradley C. Kuszmaul
d2667c2627
c++ interface is implemented (up to a point) and every method that can raise an exception is tested in exceptions.cpp. Fixes #197 , #215 .
...
git-svn-id: file:///svn/tokudb@1334 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-23 01:09:09 +00:00
Bradley C. Kuszmaul
8c4ffadd98
Quiet down the newbrt tests. Addresses #13 .
...
git-svn-id: file:///svn/tokudb@1333 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-22 23:12:40 +00:00
Bradley C. Kuszmaul
179253d997
Use toku_malloc, not malloc. Fixes #169 .
...
git-svn-id: file:///svn/tokudb@1332 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-22 22:18:50 +00:00
Bradley C. Kuszmaul
10fb98e4da
Quiet down the src/tests. Addresses #13 .
...
git-svn-id: file:///svn/tokudb@1331 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-22 20:57:07 +00:00
Bradley C. Kuszmaul
3439a6a2b8
Quiet down some of the newbrt tests. Addresses #13 .
...
git-svn-id: file:///svn/tokudb@1330 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-22 20:56:20 +00:00
Bradley C. Kuszmaul
f6688f5bb5
Add the exceptions tests. Addresses #215 .
...
git-svn-id: file:///svn/tokudb@1329 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-22 20:28:13 +00:00
Bradley C. Kuszmaul
c0d629c7e9
Make test_db_assoc3 work with -v. Make it run with vgrind. Fixes #163 .
...
git-svn-id: file:///svn/tokudb@1328 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-22 18:46:45 +00:00
Bradley C. Kuszmaul
161e70ed01
Get rid of various memory leaks in the cxx (and test cxx exceptions) Addresses #215 .
...
git-svn-id: file:///svn/tokudb@1327 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-22 18:40:22 +00:00
Rich Prohaska
f6e80ed817
fix build for bdb 4.5 addresses #133
...
git-svn-id: file:///svn/tokudb@1326 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-22 17:06:40 +00:00
Bradley C. Kuszmaul
8bf12e1bc3
db_dump_e.cpp test runs. Addresses #215 . Fixes #216 .
...
git-svn-id: file:///svn/tokudb@1321 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 20:39:53 +00:00
Bradley C. Kuszmaul
9d70992a1d
Clean up the valgrind memory leaks (caused by lots of subtle c++ bugs. Addresse #215
...
git-svn-id: file:///svn/tokudb@1320 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 19:59:31 +00:00
Bradley C. Kuszmaul
9be3ccff86
Add mgrp to dbtxn. Addresses #215 .
...
git-svn-id: file:///svn/tokudb@1319 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 15:47:42 +00:00
Bradley C. Kuszmaul
1a7fc701c5
Add mgrp to dbtxn. Addresses #215 .
...
git-svn-id: file:///svn/tokudb@1318 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 15:45:14 +00:00
Bradley C. Kuszmaul
512b701387
Add mgrp to dbtxn. Addresses #215 .
...
git-svn-id: file:///svn/tokudb@1317 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 15:44:49 +00:00
Bradley C. Kuszmaul
6198e6f5c5
add exceptions to dbc.cpp. Addresses #215 .
...
git-svn-id: file:///svn/tokudb@1316 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 15:32:21 +00:00
Bradley C. Kuszmaul
5f9cb1590b
Add {{DB*dbp}} to {{{DBC}}}. Addresses #215 .
...
git-svn-id: file:///svn/tokudb@1315 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 15:20:16 +00:00
Bradley C. Kuszmaul
a1dbfac439
Add {{DB*dbp}} to {{{DBC}}}. Addresses #215 .
...
git-svn-id: file:///svn/tokudb@1314 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 15:16:03 +00:00
Bradley C. Kuszmaul
9ab8712874
forgot to check in cxx header. Addresses #215 .
...
git-svn-id: file:///svn/tokudb@1313 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 15:09:39 +00:00
Rich Prohaska
96be11636f
build on debian432.tokutek.com addresses #133
...
git-svn-id: file:///svn/tokudb@1312 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 14:20:22 +00:00
Bradley C. Kuszmaul
433c96481f
Fix up memory issues in exceptions. Addresses #215 .
...
git-svn-id: file:///svn/tokudb@1311 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 11:07:29 +00:00
Bradley C. Kuszmaul
95ba9175ef
Add deadlock exception. Addresses #215 .
...
git-svn-id: file:///svn/tokudb@1310 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 10:23:56 +00:00
Yoni Fogel
4c90d3a8d0
DB_ENV->set_data_dir cleaned up and tightened
...
Fixes a bug where I forgot to set the reallocced memory.
Addresses #42
git-svn-id: file:///svn/tokudb@1305 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 06:18:16 +00:00
Yoni Fogel
131ce32d51
set_data_dir is now additive.
...
DB->open, and DB->remove now use the data dirs
We look (in order) in each of the data dirs for a file to open/remove.
The first file found, is the one used (even if another is similarly named with
different subdbs).
For creating dbs, (if file does not exist in any of the search dirs), we always
create in the first data dir (or env->i->dir if no data dirs are set).
Addresses #42
Addresses #108
git-svn-id: file:///svn/tokudb@1304 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 06:01:55 +00:00
Yoni Fogel
10c82d9f0c
DbEnv.err
...
DbEnv.set_errfile
toku_db_env_err now writes to the file from set_errfile
toku_db_env_err calls toku_db_env_err_vararg
Fixed DbException.set_env, and callers of it.
Modified test1 to not use exceptions, since the test tried to use return codes.
Closes #214
Addresses #197
Addresses #215
git-svn-id: file:///svn/tokudb@1303 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-21 05:57:33 +00:00
Bradley C. Kuszmaul
22e2a91e84
txn.cpp and dbtxn.cpp should be one file. Addresses #215 .
...
git-svn-id: file:///svn/tokudb@1302 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 23:49:10 +00:00
Bradley C. Kuszmaul
1237b38549
the exception class is implemented, and for db.cpp and dbenv.cpp it is called. Still need to do exceptions for dbc.cpp dbt.cpp txn.cpp. Addresses #215 .
...
git-svn-id: file:///svn/tokudb@1301 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 23:47:44 +00:00
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