Yoni Fogel
18b35fc088
Addresses #993
...
Merge branch 993 back into main.
git-svn-id: file:///svn/tokudb@5141 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-16 22:23:29 +00:00
Rich Prohaska
a68937a031
read the timestamp counter. closes #1012
...
git-svn-id: file:///svn/tokudb@5018 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-09 18:50:06 +00:00
Bradley C. Kuszmaul
3381558927
Print all the extra functions when building the h files. Fixes #1005 .
...
git-svn-id: file:///svn/tokudb@5012 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-09 16:55:59 +00:00
Rich Prohaska
2f5ebc7d8b
define the db->truncate function. addresses #968
...
git-svn-id: file:///svn/tokudb@4824 c7de825b-a66e-492c-adef-691d508d4ae1
2008-06-30 20:17:58 +00:00
Yoni Fogel
83bd37f5bc
Addresses #908
...
Add DB->pre_acquire_table_lock to headers
git-svn-id: file:///svn/tokudb@4479 c7de825b-a66e-492c-adef-691d508d4ae1
2008-06-11 19:38:51 +00:00
Yoni Fogel
5764fdef8e
Addresses #904
...
Add DB_PRELOCKED_WRITE flag
git-svn-id: file:///svn/tokudb@4462 c7de825b-a66e-492c-adef-691d508d4ae1
2008-06-10 19:46:00 +00:00
Bradley C. Kuszmaul
750998c9da
Implement {{{DBC->c_getf_next}}}, with a simple test. Addresses #902 .
...
git-svn-id: file:///svn/tokudb@4452 c7de825b-a66e-492c-adef-691d508d4ae1
2008-06-10 15:39:31 +00:00
Yoni Fogel
d9e9792d8c
Addresses #893
...
Parameters to pre_lock are supposed to be const DBT*'s instead of DBT*'s.
git-svn-id: file:///svn/tokudb@4403 c7de825b-a66e-492c-adef-691d508d4ae1
2008-06-06 18:09:04 +00:00
Yoni Fogel
e22d67bb8e
Addresses #893
...
Implement db->pre_acquire_read_lock(), db->dbt_pos_infty(), and db->dbt_neg_infty()
functions.
Example usage to lock entire table:
db->pre_acquire_read_lock(db, txn, db->dbt_neg_infty(), NULL, db->dbt_pos_infty(), NULL);
(Above is for db with no duplicates, i.e. primary index).
For db with duplicates:
db->pre_acquire_read_lock(db, txn, db->dbt_neg_infty(), db->dbt_neg_infty(), db->dbt_pos_infty(), db->dbt_pos_infty());
Will return same lock error codes as db calls do (when locks fail).
0 = success
DB_LOCK_NOTGRANTED = failed to obtain the lock.
We can theoretically sleep and try again here.
If you want to grab from DBT* A to infinity..
db->pre_acquire_read_lock(db, txn, A, NULL, db->dbt_pos_infty(), NULL);
git-svn-id: file:///svn/tokudb@4402 c7de825b-a66e-492c-adef-691d508d4ae1
2008-06-06 17:50:38 +00:00
Yoni Fogel
f32fcb751b
Closes #777
...
omt used to replaced libredblack
git-svn-id: file:///svn/tokudb@3986 c7de825b-a66e-492c-adef-691d508d4ae1
2008-05-16 20:09:13 +00:00
Bradley C. Kuszmaul
502b08ae44
Create the header needed for keyrange64. Addresses #90 .
...
git-svn-id: file:///svn/tokudb@3935 c7de825b-a66e-492c-adef-691d508d4ae1
2008-05-13 13:09:22 +00:00
Bradley C. Kuszmaul
a636c8f7e3
Work on trace implementation. Addresses #701 .
...
git-svn-id: file:///svn/tokudb@3437 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-12 09:12:22 +00:00
Yoni Fogel
09894eb3f9
Added tokudb specific error codes
...
git-svn-id: file:///svn/tokudb@2943 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-19 14:39:27 +00:00
Bradley C. Kuszmaul
7997c793d1
Implement {{{db_env_set_func_fsync}}} and write a test that can discern the use of group commit. Fixes #499 , #496 .
...
git-svn-id: file:///svn/tokudb@2655 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-09 02:39:37 +00:00
Bradley C. Kuszmaul
374529389d
Add {{{set_lg_max()}}} and {{{get_lg_max}}}. Addresses #79 .
...
git-svn-id: file:///svn/tokudb@2627 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-07 21:03:06 +00:00
Bradley C. Kuszmaul
4e04fed3e6
Reduce symbol visibility. Fixes #467 .
...
git-svn-id: file:///svn/tokudb@2541 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-05 11:54:58 +00:00
Rich Prohaska
0c74e90477
set_lk_max_locks already added to the c++ interface. delete the extra junk. close #230
...
git-svn-id: file:///svn/tokudb@2468 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-29 18:30:44 +00:00
Yoni Fogel
2d5e34efda
Added DB_AUTO_COMMIT to header
...
git-svn-id: file:///svn/tokudb@2251 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-11 19:55:37 +00:00
Rich Prohaska
90f58ae1ae
oops, restore the db.h 4.4
...
git-svn-id: file:///svn/tokudb@2197 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 19:11:33 +00:00
Rich Prohaska
84be2fa9c4
port from branch 0.4.2 to main. closes #362
...
git-svn-id: file:///svn/tokudb@2196 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 19:10:34 +00:00
Rich Prohaska
cb2662383d
add env->set/get_lk_max_locks. closes #341
...
git-svn-id: file:///svn/tokudb@2117 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 12:54:17 +00:00
Yoni Fogel
506fad56cc
Addresses #293 Addresses #307
...
A compiler directive to make compilation sweeter
git-svn-id: file:///svn/tokudb@2104 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-05 22:29:26 +00:00
Rich Prohaska
d6249b2679
implement DB_CURRENT_BINDING, an operation that returns the current cursor kv binding even if deleted. closes #274
...
git-svn-id: file:///svn/tokudb@2063 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-03 18:26:01 +00:00
Rich Prohaska
6e4f8f8f8e
update the db.h copyrights. addresses #283
...
git-svn-id: file:///svn/tokudb@1887 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-25 16:00:41 +00:00
Bradley C. Kuszmaul
9fe0391206
Add copyright 2008. Fixes #283 .
...
git-svn-id: file:///svn/tokudb@1844 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-24 15:10:32 +00:00
Yoni Fogel
bf30a38401
Added DB_LOCK_NOTGRANTED
...
Addresses #290
git-svn-id: file:///svn/tokudb@1783 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-22 00:01:01 +00:00
Rich Prohaska
24a344be36
add #include guard. closes #269
...
git-svn-id: file:///svn/tokudb@1653 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-14 21:29:09 +00:00
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