Rich Prohaska
7aa2cb58c4
test Db::associate closes #226 closes #234
...
git-svn-id: file:///svn/tokudb@1431 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-30 16:46:07 +00:00
Rich Prohaska
0b0d470226
add Dbc::pget addresses #234
...
git-svn-id: file:///svn/tokudb@1430 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-30 14:47:13 +00:00
Rich Prohaska
7628890fe8
test Db::associate addresses #226
...
git-svn-id: file:///svn/tokudb@1429 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-30 14:17:11 +00:00
Rich Prohaska
172092ef8f
add DbEnv::set_flags addresses #229
...
git-svn-id: file:///svn/tokudb@1413 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-29 17:59:20 +00:00
Rich Prohaska
0c298aadf1
close and delete private DbEnv after the Db is closed. closes #233
...
git-svn-id: file:///svn/tokudb@1412 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-29 16:27:50 +00:00
Rich Prohaska
86b5837560
test case for double DbEnv delete. addresses #233
...
git-svn-id: file:///svn/tokudb@1411 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-29 16:21:58 +00:00
Bradley C. Kuszmaul
3dc8289b6a
Make the cxx callback conversion work. Addresses #226 .
...
git-svn-id: file:///svn/tokudb@1404 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-28 17:39:49 +00:00
Rich Prohaska
f3a8729ed4
test the Dbc::del method. closes #227
...
git-svn-id: file:///svn/tokudb@1397 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-28 02:06:54 +00:00
Rich Prohaska
78e19beb7a
another Db::associate step. addresses #226
...
git-svn-id: file:///svn/tokudb@1396 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-27 22:30:29 +00:00
Rich Prohaska
c8232e91a7
some progess on Db::associate. addresses #226
...
git-svn-id: file:///svn/tokudb@1395 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-27 22:10:59 +00:00
Rich Prohaska
b4d0b55930
implement Dbc::del addresses #227
...
git-svn-id: file:///svn/tokudb@1394 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-27 21:37:04 +00:00
Rich Prohaska
f71cc3bb2b
make it work the 1st time. addresses #133
...
git-svn-id: file:///svn/tokudb@1352 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-25 17:04:07 +00:00
Rich Prohaska
6d935488c5
make "make check" rerunable
...
git-svn-id: file:///svn/tokudb@1347 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-24 22:20:12 +00:00
Bradley C. Kuszmaul
7e25f30c39
Made sure that get and work do something useful through the c++ interface. Fixes #220 .
...
git-svn-id: file:///svn/tokudb@1336 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-23 01:37:14 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Bradley C. Kuszmaul
9bd83f9f13
db_create compiles and runs. Addresses #197 .
...
git-svn-id: file:///svn/tokudb@1198 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 16:43:22 +00:00
Bradley C. Kuszmaul
f87b4e5d7d
Make db_create work a little more under c++. Addresses #197 .
...
git-svn-id: file:///svn/tokudb@1196 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 16:34:48 +00:00
Bradley C. Kuszmaul
37b42e21ea
Make db_create work under c++. Addresses #197 .
...
git-svn-id: file:///svn/tokudb@1194 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 16:22:21 +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