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
Yoni Fogel
012f706b67
DB_DBT_(MALLOC|REALOC|USERMEM) now behave the same as BDB.
...
We never touch ulen. If DB_DBT_USERMEM and ulen is too small, we set size, (do not write anything)
and return DB_BUFFER_SMALL.
This includes test_db_dbt_mem_behavior.c
Closes #146
git-svn-id: file:///svn/tokudb@1034 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 17:04:02 +00:00
Rich Prohaska
3258fa2ec1
define DB_NODUPDATA to get our bdb tests to compile. closes #142
...
git-svn-id: file:///svn/tokudb@999 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 14:57:13 +00:00
Rich Prohaska
6a762592d1
add c_pget to db.h addresses #107
...
git-svn-id: file:///svn/tokudb@942 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-05 19:26:19 +00:00
Yoni Fogel
68e02ebb0c
{{{
...
Added DB_SECONDARY_BAD to db.h
Added DB_CURRENT to db.h
DB->get (now returns DB_SECONDARY_BAD when appropriate)
DB->pget (now returns DB_SECONDARY_BAD when appropriate)
** DBC->c_get (works with associate)
** DBC->c_pget (added function, works with associate, but not in header yet)
** *DBC->c_del (works with associate)
*DB->del (works with associate)
* May not work properly with duplicates.
* Question: Do I have to use
search_val.flags = DB_DBT_MALLOC;
and
free(search_val.data);
** Requires DB_CURRENT to be supported in toku_brt_cursor_get
}}}
addresses #48
git-svn-id: file:///svn/tokudb@890 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-03 05:01:43 +00:00
Bradley C. Kuszmaul
f44eebe2ae
Make bdb 4.4 be the default for buildheader, and add DB_DBT_APPMALLOC and DB_DBT_MULITPLE. Fixes #96 , #97 .
...
git-svn-id: file:///svn/tokudb@846 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 05:04:06 +00:00
Rich Prohaska
5cd6a6d27c
set the default db.h to 4.4 addresses #49
...
git-svn-id: file:///svn/tokudb@836 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 21:06:11 +00:00
Rich Prohaska
14bba37fdf
add pget, TOKUDB to db.h. closes #69 . closes #70
...
git-svn-id: file:///svn/tokudb@805 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 20:04:35 +00:00
Bradley C. Kuszmaul
e4dcc3e9f8
A bunch of symbols that don't start with toku_ are made static or start with toku_. Addresses #8 .
...
git-svn-id: file:///svn/tokudb@801 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 19:09:24 +00:00
Yoni Fogel
2f633ea10a
Added DB_USE_ENVIRON and DB_USE_ENVIRON_ROOT
...
git-svn-id: file:///svn/tokudb@757 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 17:24:43 +00:00
Yoni Fogel
f978d2859e
Modified tokudb to work with test_db_already_exists
...
git-svn-id: file:///svn/tokudb@643 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-19 16:30:50 +00:00
Bradley C. Kuszmaul
d515375960
up
...
git-svn-id: file:///svn/tokudb@518 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-14 17:52:59 +00:00
Bradley C. Kuszmaul
657c57b44a
Do subtransactions properly (without an fsync)
...
git-svn-id: file:///svn/tokudb@499 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-19 17:05:10 +00:00
Bradley C. Kuszmaul
39c9fc29c4
Logging
...
git-svn-id: file:///svn/tokudb@462 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-15 03:32:32 +00:00
Bradley C. Kuszmaul
62d8cb7fb2
Add verify
...
git-svn-id: file:///svn/tokudb@458 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-15 01:58:01 +00:00
Bradley C. Kuszmaul
5a6ad716e0
add db_version
...
git-svn-id: file:///svn/tokudb@452 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-14 14:04:10 +00:00
Bradley C. Kuszmaul
e7ab3b8987
Put in a db.h that corresponds to bdb
...
git-svn-id: file:///svn/tokudb@451 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-14 13:56:36 +00:00
Bradley C. Kuszmaul
dfba18cee6
Fixup
...
git-svn-id: file:///svn/tokudb@438 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-11 12:55:26 +00:00
Bradley C. Kuszmaul
ada8d57b8c
Up
...
git-svn-id: file:///svn/tokudb@427 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-09 22:24:25 +00:00
Bradley C. Kuszmaul
5acc0020b8
Update db.h
...
git-svn-id: file:///svn/tokudb@426 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-09 22:03:34 +00:00
Bradley C. Kuszmaul
710cf343a3
Merge logging
...
git-svn-id: file:///svn/tokudb@371 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-28 17:11:22 +00:00
Rich Prohaska
065b55909e
add DB_VERSION_MAJOR/MINOR/PATCH
...
add db_env_create def
add db_create def
git-svn-id: file:///svn/tokudb@324 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-19 18:34:17 +00:00
Bradley C. Kuszmaul
de47452c10
use the new db.h
...
git-svn-id: file:///svn/tokudb@276 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-06 20:13:56 +00:00
Bradley C. Kuszmaul
d7bc137217
Fix spelling error
...
git-svn-id: file:///svn/tokudb@274 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-06 19:39:51 +00:00