Commit graph

68 commits

Author SHA1 Message Date
John Esmet
68f199f146 fixes Remove legacy OMT API. Some of it survives in omt-test.cc to
simplify things. New OMTs will use the new templated API, or, when
performance is not critical, use something simple like a std::map
2014-03-03 21:52:22 -05:00
John Esmet
7a76d84d01 fixes Consolidate our portability code by moving toku_include/*
stuff into portability/
2014-03-03 20:07:57 -05:00
John Esmet
d66c2bae02 fixes Moved memarena to util, made its public API more consistent with
the rest of the code
2014-03-03 15:11:54 -05:00
John Esmet
cb030cb448 fixes Move x1764 to util/ and make the public API consistent with
the rest of the code.
2014-03-03 14:48:03 -05:00
John Esmet
1069488087 Fix the OSX build 2014-03-03 10:54:33 -05:00
John Esmet
e20bccc17a fixes Add dynamic-value omt clone (dmt) and use it to implement basement nodes 2014-03-02 22:46:49 -05:00
John Esmet
1221054361 fixes Remove the 25% padding from toku_mempool_construct. Clean up
the bndata code that calls toku_mempool_construct.
2014-03-02 18:53:39 -05:00
John Esmet
d93fe66d5e refs split the includes that are used for OSX vs linux builds 2014-02-15 10:38:20 -05:00
John Esmet
ca7651e522 fixes maintain a global map of registered tl_stack objects that we
can iterate over and clean up, which prevents a memory leak when the
fractal tree shared library unloads before all thread-local destructors run
2014-02-15 10:13:23 -05:00
Leif Walsh
9d3d681d04 Revert "Merge remote-tracking branch 'origin/ft-index/46merge-a'"
This reverts commit b1c1e93dc4, reversing
changes made to 60be90af92.
2014-02-04 11:08:30 -05:00
Leif Walsh
a03b9926d7 Merge remote-tracking branch 'origin/ft-index/46merge-a' 2014-02-04 10:37:07 -05:00
Yoni Fogel
4d9ba2645a fixes frwlock is properly split into .h and .cc. Users only include .h 2014-01-29 22:09:33 -08:00
Yoni Fogel
198b4d60bd Refs Updated comments in dmt.h 2014-01-29 20:59:40 -08:00
Yoni Fogel
4d3451acd0 Refs Unify toku_mempool_*_(size|space) to be toku_mempool_*_size 2014-01-29 20:59:34 -08:00
Yoni Fogel
7a2e9511a3 Refs improve test coverage, minor formatting 2014-01-29 20:59:28 -08:00
Yoni Fogel
51d75f315d Refs cleaned up serialization, upped version to 26 2014-01-29 20:59:26 -08:00
Yoni Fogel
db9ef1a573 Refs Comments, minor renames, reworked bn_data::move_leafentries s.t. splits do not significantly increase memory usage of basement nodes and to be cleaner 2014-01-29 20:59:24 -08:00
Yoni Fogel
3b661a4ba9 Refs fix overactive inequality assertion in mempool 2014-01-29 20:59:19 -08:00
Yoni Fogel
6b0c108cff Refs Killed dmt_functor<> template. Added dmtwriter_t template parameter to dmt and some documentation 2014-01-29 20:59:17 -08:00
Yoni Fogel
eef0ab7812 Refs documentation/comments 2014-01-29 20:59:15 -08:00
Yoni Fogel
12937dc284 Refs Finish verify (find purpose). Restore old verify_in_mempool functionality 2014-01-29 20:59:10 -08:00
Yoni Fogel
7e32e7c7f8 Refs Minor optimizations, added some todos for code review. WILL NOT COMPILE 2014-01-29 20:59:08 -08:00
Yoni Fogel
8d45bea397 Refs Add some comments. Improve dmt::verify() to check for more types of corruption. More static checks 2014-01-29 20:59:05 -08:00
Yoni Fogel
7fb84ea746 Refs Remove ctree/dtree/mnode/cnode/base node/dnode/marks/etc... That is, removed all items that
were designed to allow us to upgrade the dmt later (e.g. fixed-length nodes for tree form) or merge with old omt (e.g. supporting marks)
2014-01-29 20:58:46 -08:00
Yoni Fogel
8e04352397 Refs Added some comments, deleted unused/commented out code, renamed variables 2014-01-29 20:58:35 -08:00
Yoni Fogel
b0ccec783a Refs Add dmt (dynamic OMT)
Use dmt to replace omt in bn_data class for storing leafentries.
Optimization for serial inserts and mempool
2014-01-29 20:53:35 -08:00
Leif Walsh
5a61f34453 added passthrough scoped_malloc impl for osx
osx doesn't support __thread well so scoped_malloc breaks it.  Rather than
fix it, we implement a correct but poorly-performing implementation for
now that will be used on osx machines.

fixes 
2014-01-29 18:40:27 -05:00
John Esmet
75052cdc11 fixes Add a class for scoped mallocs, which are satisfied from a
thread-local buffer when possible.
2014-01-23 16:57:04 -05:00
John Esmet
fbc1f5933e fixes Add context class and track the current writer/context in the
frwlock
2014-01-22 13:18:49 -05:00
John Esmet
f7c1d3f9ff fixes Remove toku_fair_rwlock 2014-01-20 16:53:17 -05:00
Rich Prohaska
f64edcc463 error out env->open when worker threads can not be created 2014-01-06 16:58:22 -05:00
Leif Walsh
d1bef7992e fixed osx compilation breakage due to format strings 2013-12-23 19:23:20 -05:00
Leif Walsh
9f59d06843 added cpack component identifications to all install targets 2013-12-20 17:58:48 -05:00
Zardosht Kasheff
6721a2c1e7 Merge branch 'bugs/115' 2013-12-09 15:46:56 -05:00
Zardosht Kasheff
41364a4ba8 refs , don't allow mempools to grow unbounded by restricting their size in
omt_compress_kvspace.
2013-12-09 15:46:49 -05:00
Rich Prohaska
78bfa5e78c use frwlock as checkpoint_safe_lock 2013-11-18 09:31:36 -05:00
Rich Prohaska
be83087a3c check if various rwlocks are fair WRT multiple writers 2013-11-18 08:19:39 -05:00
Rich Prohaska
2796c2d35c add US Patent 8,489,638 2013-10-04 16:49:53 -04:00
Yoni Fogel
bf4c67f20d refs , LOTS of refactoring done.
Isolate mempool and OMT into a new class, bndata.
Remove key from the leafentry.
2013-09-25 11:07:30 -04:00
Leif Walsh
8a3d908ba3 demangle partitioned counter functions, and export read_partitioned_counter, closes 2013-05-30 13:33:58 -04:00
Leif Walsh
366e847e5f don't do cmake install if we're a subproject of mysql 2013-04-28 20:20:17 -04:00
Leif Walsh
82970ad7d1 rename config.h to toku_config.h to prevent name clash 2013-04-27 13:52:40 -04:00
Leif Walsh
9f99932a76 refs fix typo in license text
git-svn-id: file:///svn/toku/tokudb@55577 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:36 -04:00
Leif Walsh
9fd20e61a4 refs add license text to all C/C++ files as a comment near the top
git-svn-id: file:///svn/toku/tokudb@55574 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:35 -04:00
Leif Walsh
84fef672e4 refs update all copyright strings to reflect an end year of 2013
git-svn-id: file:///svn/toku/tokudb@55567 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:35 -04:00
Yoni Fogel
798f83412e refs Reorganized static asserts and status macros so c++11 features stay out of exported headers
git-svn-id: file:///svn/toku/tokudb@54546 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:31 -04:00
Yoni Fogel
6371d1134b refs Fix compile for CLANG.
Enabled some more asserts, disabled some static asserts for clang because it does not support constexprs

git-svn-id: file:///svn/toku/tokudb@54540 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:31 -04:00
Yoni Fogel
8c06138f58 refs Removed TOKDUB_ prefixes from all column names for global status.
Added static asserts that prevent accidentally adding global status variables that start with TOKU

git-svn-id: file:///svn/toku/tokudb@54509 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:31 -04:00
Yoni Fogel
22e332838a refs Add 148 items to information schema.global_status
git-svn-id: file:///svn/toku/tokudb@54507 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:31 -04:00
Yoni Fogel
e8226b79b8 refs Add infrastructure to use column names for info schema
git-svn-id: file:///svn/toku/tokudb@54506 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:31 -04:00