Commit graph

227 commits

Author SHA1 Message Date
Rich Prohaska
6fdbf9bf15 move toku_malloc to the port layer. closes #1342
git-svn-id: file:///svn/toku/tokudb.1032b@8423 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:32 -04:00
Yoni Fogel
c9cea2fc9b Addresses #1032
make clean does not remove tags/cscope tags

git-svn-id: file:///svn/toku/tokudb.1032b@8379 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:32 -04:00
Yoni Fogel
3cf3321fb0 Addresses #1032
Added some defaults to clean

git-svn-id: file:///svn/toku/tokudb.1032b@8326 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Yoni Fogel
e3aef035f6 Addresses #1322
Port makefile change to windows

git-svn-id: file:///svn/toku/tokudb.1032b@8325 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Yoni Fogel
46e0633495 Addresses #1032b
Fixed makefile for windows

git-svn-id: file:///svn/toku/tokudb.1032b@8323 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Bradley C. Kuszmaul
6232f7a211 Fixes #1322.
git-svn-id: file:///svn/toku/tokudb.1032b@8301 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Rich Prohaska
c79d51312c fix icc warnings on linux. addresses #1307
git-svn-id: file:///svn/toku/tokudb.1032b@8275 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Yoni Fogel
91ae1efd28 Addresses #1307
Added more poison/deprecated calls.

git-svn-id: file:///svn/toku/tokudb.1032b@8266 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Yoni Fogel
505fd0c50d Addresses #1307
deprecate fstat in windows version.

git-svn-id: file:///svn/toku/tokudb.1032b@8265 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Yoni Fogel
cfb07b7d5d Addresses #1307
fstat calls replaced with toku_os calls.
fstat deprecated everywhere except the 'linux' portability directory

git-svn-id: file:///svn/toku/tokudb.1032b@8264 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Yoni Fogel
81ffdf9623 Addresses #1032
Fixes DEBUG=1 make, modified ignores.

git-svn-id: file:///svn/toku/tokudb.1032b@8160 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Yoni Fogel
373892cbda Closes #1295
Merged in 1.08.1 fixes as well as some minor changes required to get them to work/Makefiles

git-svn-id: file:///svn/toku/tokudb.1032b@8148 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Rich Prohaska
624b9272c4 use libtokuportability. closes #1269
git-svn-id: file:///svn/toku/tokudb.1032b@8076 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Rich Prohaska
ff04e643fc imp make DEBUG=0 or DEBUG=1. closes #1272
git-svn-id: file:///svn/toku/tokudb.1032b@8075 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Zardosht Kasheff
ed472f23c8 addresses #1268
fix construct_full_name so that absolute windows paths do not get modified

git-svn-id: file:///svn/toku/tokudb.1032b@8019 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:29 -04:00
Rich Prohaska
4f46b25a02 rename to toku_portability.h addresses #1269
git-svn-id: file:///svn/toku/tokudb.1032b@7952 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:29 -04:00
Rich Prohaska
6ebe124875 imp toku_os_ closes #1253
git-svn-id: file:///svn/toku/tokudb.1032b@7837 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:28 -04:00
Rich Prohaska
9581c5c539 merge 1032 src/tests to 1032b. addresses #1032
git-svn-id: file:///svn/toku/tokudb.1032b@7835 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:28 -04:00
Rich Prohaska
bf1af189e0 test with icc on linux. addresses #1032
git-svn-id: file:///svn/toku/tokudb.1032b@7810 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:28 -04:00
Rich Prohaska
0d44815bf5 merge some tokudb.1032 into 1032b. addresses #1032
git-svn-id: file:///svn/toku/tokudb.1032b@7778 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:27 -04:00
Rich Prohaska
63df00fc53 merge read uncommited changes to the dev branch. addresses #1201
git-svn-id: file:///svn/toku/tokudb.1195@7681 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:25 -04:00
Rich Prohaska
746d28bf51 compile with gcc. addresses #1185
git-svn-id: file:///svn/tokudb.1131b+1080a+1185+nostatementexprs@6469 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:21 -04:00
Bradley C. Kuszmaul
a25c7dc501 Make it work better with icc. Addresses #1185.
git-svn-id: file:///svn/tokudb.1131b+1080a+1185+nostatementexprs@6468 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:21 -04:00
Yoni Fogel
577a6cea88 Addresses #182
Add headers for DB->delboth

git-svn-id: file:///svn/tokudb@5699 c7de825b-a66e-492c-adef-691d508d4ae1
2008-08-18 03:27:37 +00:00
Yoni Fogel
272c9a6b02 Addresses #1079
makes DB_TXN->parent public

git-svn-id: file:///svn/tokudb@5616 c7de825b-a66e-492c-adef-691d508d4ae1
2008-08-12 13:38:04 +00:00
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