Rich Prohaska
a5ab8916b0
implement Db::set_error_stream. closes #257
...
git-svn-id: file:///svn/tokudb@1610 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-11 22:37:05 +00:00
Rich Prohaska
d3239fc444
implement DbEnv::set_error_stream closes #255
...
git-svn-id: file:///svn/tokudb@1603 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-11 16:14:54 +00:00
Rich Prohaska
a9e1d29612
add Db::fd closes #231
...
git-svn-id: file:///svn/tokudb@1601 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-11 14:38:49 +00:00
Rich Prohaska
16bcec861e
implement and test cursor->count. closes #258
...
git-svn-id: file:///svn/tokudb@1587 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-10 19:42:08 +00:00
Rich Prohaska
184c610dbb
add cursor->c_count. addresses #258
...
git-svn-id: file:///svn/tokudb@1586 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-10 16:29:45 +00:00
Rich Prohaska
48d957cdc4
add some more cursor ops addresses #259
...
git-svn-id: file:///svn/tokudb@1583 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-10 12:51:09 +00:00
Bradley C. Kuszmaul
66c9c1ef84
Fix the type in set_errcall. Addresses #246 .
...
git-svn-id: file:///svn/tokudb@1534 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 16:30:46 +00:00
Yoni Fogel
c040f95712
Added c++ wrappers for get_flags
...
Also added errcall initializer
Addresses #240
git-svn-id: file:///svn/tokudb@1500 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-04 16:45:44 +00:00
Rich Prohaska
c83bd8f03d
stubs waiting for locking to be implemented. addresses #230
...
git-svn-id: file:///svn/tokudb@1467 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-02 16:00:18 +00:00
Rich Prohaska
22fae76068
add flags to db.h for amazon.com. closes #239
...
git-svn-id: file:///svn/tokudb@1466 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-02 15:54:00 +00:00
Rich Prohaska
b4d45cd7a8
add DbEnv::set_errcall closes #228
...
git-svn-id: file:///svn/tokudb@1441 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-31 15:00:07 +00:00
Rich Prohaska
14830de63e
add Db::set_dup_compare closes #236
...
git-svn-id: file:///svn/tokudb@1440 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-31 14:04:30 +00:00
Rich Prohaska
cd8355df8a
add DbTxn::abort. closes #232
...
git-svn-id: file:///svn/tokudb@1439 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-31 13:27:49 +00:00
Rich Prohaska
07424a4c64
add Db::pget addresses #235
...
git-svn-id: file:///svn/tokudb@1432 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-31 01:52:33 +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
205a72c987
fix the DB_ENV->set_errcall prototype. closes #225
...
git-svn-id: file:///svn/tokudb@1416 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-29 19:14:19 +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
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
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
bbc186797b
fix the get_cachesize function prototype. addresses #223
...
git-svn-id: file:///svn/tokudb@1377 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-27 03:23:46 +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
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
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
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
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
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
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
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
7856a1f874
Lined up functions
...
git-svn-id: file:///svn/tokudb@1283 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-20 18:28:08 +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
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
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
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
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
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
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
b817a0e06c
Add api_internal to db.h. Addresses #197 .
...
git-svn-id: file:///svn/tokudb@1193 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 14:51:09 +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
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
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
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
Yoni Fogel
7331e46492
Added DB_UNKNOWN to db.h
...
You can use DB_UNKNOWN as a dbtype (as long as you don't use DB_EXCL) in dbopen,
and then it will load the flags from the file.
tokudb_dump
Now supports duplicates/sorted duplicates.
tokudb_load will give a warning about any duplicate duplicate loads
but will continue with the rest of the data.
Closes #148
Closes #166
git-svn-id: file:///svn/tokudb@1086 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 19:34:21 +00:00
Rich Prohaska
feb39edc30
add get_flags. addresses #166
...
git-svn-id: file:///svn/tokudb@1084 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 18:52:12 +00:00