Commit graph

165 commits

Author SHA1 Message Date
Yoni Fogel
315770b1ac Addresses #1519 Linux port of 'poison off_t' in windows
git-svn-id: file:///svn/toku/tokudb@9784 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:43 -04:00
Yoni Fogel
e50cfa1034 Addresses #1519 poison off_t in windows
git-svn-id: file:///svn/toku/tokudb@9783 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:42 -04:00
Yoni Fogel
93a8bf9922 Addresses #1360 Add db->row_size_supported(DB*,u_int32_t) function to aid handlerton
in determining if a table schema is supported (for size)

git-svn-id: file:///svn/toku/tokudb@9772 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:42 -04:00
Yoni Fogel
3b42b55489 Closes #1378 Merged all changes into main.
git-svn-id: file:///svn/toku/tokudb@9507 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:41 -04:00
Yoni Fogel
83eee5663a Addresses #1396
Merge tokudb.1396 back into main

git-svn-id: file:///svn/toku/tokudb@9110 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:39 -04:00
Bradley C. Kuszmaul
14bdceffe6 Get rid of {{{DB_PREV_DUP}}} from the 4.6 version of {{{db.h}}}. Addresses #1412.
git-svn-id: file:///svn/toku/tokudb@9109 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:39 -04:00
Bradley C. Kuszmaul
2ab7473d74 First part of #1412 (update the db.h file to be compatible with bdb 4.6. Addresses #1412.
git-svn-id: file:///svn/toku/tokudb@9102 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:39 -04:00
Bradley C. Kuszmaul
85f355d631 Improve error messages and error handling when writes fail.
* Fixes #78 ({{{lg_bsize}}} works)
 * Fixes #1323 (write errors)
Did
{{{
svn merge -r8967:9031 https://svn.tokutek.com/tokudb/toku/tokudb.1323a
}}}

(And I'll delete the 1323 branches in a moment.)


git-svn-id: file:///svn/toku/tokudb@9032 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:38 -04:00
Bradley C. Kuszmaul
3c6cbdbf42 Create a test for #1389. Addresses #1389.
git-svn-id: file:///svn/toku/tokudb@8802 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:38 -04:00
Bradley C. Kuszmaul
1ea88e0c8a More hacking on dlmalloc. Addresses #1032, #1328, #1343.
git-svn-id: file:///svn/toku/tokudb.1032b+1343@8476 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:34 -04:00
Bradley C. Kuszmaul
316c7f118b Add {{{db_env_set_func_malloc}}}, {{{db_env_set_func_realloc}}}, and {{{db_env_set_func_free}}}. Addresses #1343, #1032, #1328. Tests don't pass
git-svn-id: file:///svn/toku/tokudb.1032b+1343@8474 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:34 -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
Yoni Fogel
df75b272c5 Addresses #182
Add headers for DB->delboth

git-svn-id: file:///svn/tokudb@5700 c7de825b-a66e-492c-adef-691d508d4ae1
2008-08-18 03:27:56 +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
Rich Prohaska
2a2e316f18 addresses #1079
git-svn-id: file:///svn/tokudb@5604 c7de825b-a66e-492c-adef-691d508d4ae1
2008-08-11 13:02:17 +00:00
Yoni Fogel
4f887136e2 Addresses #1079
Modify sample_offsets to include DB_TXN.parent

git-svn-id: file:///svn/tokudb@5579 c7de825b-a66e-492c-adef-691d508d4ae1
2008-08-09 18:02:07 +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
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
a754a77ff6 support OPTFLAGS
git-svn-id: file:///svn/tokudb@5006 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-09 13:27:55 +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
363b8d8dba Create the header needed for keyrange64. Addresses #90.
git-svn-id: file:///svn/tokudb@3934 c7de825b-a66e-492c-adef-691d508d4ae1
2008-05-13 13:07:25 +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
Bradley C. Kuszmaul
8a520dd06e Fix {{{db.h_4_6}}}. Fixes #560.
git-svn-id: file:///svn/tokudb@2946 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-19 14:59:40 +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
Zardosht Kasheff
6a3cabd62c add TOKUDB error
git-svn-id: file:///svn/tokudb@2942 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-19 14:33:39 +00:00
Bradley C. Kuszmaul
ff674a7fb9 Add {{{db_env_set_func_fsync}}}. Addresses #499.
git-svn-id: file:///svn/tokudb@2650 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-08 21:29:27 +00:00
Bradley C. Kuszmaul
8df253ad08 Add h files. Addresses #79.
git-svn-id: file:///svn/tokudb@2626 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-07 20:58:04 +00:00
Bradley C. Kuszmaul
5b8eb1bdb7 compute 32-bit offsets for {{{set_lg_max}}} and {{{get_lg_max}}}. Addresses #79.
git-svn-id: file:///svn/tokudb@2624 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-07 20:57:13 +00:00
Bradley C. Kuszmaul
4af7f162dc compute 32-bit offsets for {{{set_lg_max}}} and {{{get_lg_max}}}. Addresses #79.
git-svn-id: file:///svn/tokudb@2622 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-07 20:10:21 +00:00
Rich Prohaska
94bd0c81d5 fix db.h 4.6 compatible
git-svn-id: file:///svn/tokudb@2578 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-06 14:42:00 +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
187380c667 define DB_AUTO_COMMIT in db.h_4_6
git-svn-id: file:///svn/tokudb@2261 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-12 12:20:13 +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
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
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
Rich Prohaska
c319506339 add DB_TXN_NOWAIT to fix builds
git-svn-id: file:///svn/tokudb@1796 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-22 15:42:54 +00:00
Rich Prohaska
989bdd3f7e DB_LOCK_NOTGRANTED addresses #290
git-svn-id: file:///svn/tokudb@1787 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-22 01:21:28 +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
Yoni Fogel
9858fb38ef Added DB_LOCK_NOTGRANTED
Addresses #290

git-svn-id: file:///svn/tokudb@1782 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-21 23:59:04 +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
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