Commit graph

22 commits

Author SHA1 Message Date
Leif Walsh
ffe2a5d87c refs #5351 fix mutexattr stuff for darwin
git-svn-id: file:///svn/toku/tokudb@49885 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:16 -04:00
John Esmet
12803248af refs #5351 do not use the static initializer in a dynamic context, because it confuses tools like helgrind which look for create/destroy pairs to validate mutex handling
git-svn-id: file:///svn/toku/tokudb@49865 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:15 -04:00
John Esmet
65cd284834 fixes #5351 fixes #5528 merge the new locktree to main. the locktree, locktree manager, and blocking lock request api are implemented at the toplevel under locktree/ and the ydb layer has been modified to use the new API. some kruft has been deleted from various parts of the source tree and these merge also includes a change where we kill 'includes.h'
git-svn-id: file:///svn/toku/tokudb@49851 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:15 -04:00
Zardosht Kasheff
ddfd46fb56 refs #5634, merge bucket mutexes to main
git-svn-id: file:///svn/toku/tokudb@49391 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:14 -04:00
Leif Walsh
983eb0467c refs #5632 add a portability layer for adaptive mutexes
git-svn-id: file:///svn/toku/tokudb@49239 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:13 -04:00
Leif Walsh
0fd3fcc3d6 refs #5351 add circular_buffer, no comments yet
git-svn-id: file:///svn/toku/tokudb@48715 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:12 -04:00
Leif Walsh
f7f08de520 refs #5368 add implementations for some things in the portability layer
git-svn-id: file:///svn/toku/tokudb@48334 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:11 -04:00
John Esmet
0bc5013e30 fixes #5423 fixes #5424 fixes #5503 fixes #5225 fsync always succeeds and returns void, no more ft panic or logger panic, no more impossible error paths
git-svn-id: file:///svn/toku/tokudb@48076 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:08 -04:00
Leif Walsh
dbdc3ef117 refs #5507 fix TOKU_MUTEX_INITIALIZER
git-svn-id: file:///svn/toku/tokudb@48032 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:07 -04:00
Leif Walsh
bd63072bdf closes #5485 #5368 clean up cmake and get darwin portability:
for 5485:
 - remove icc handling stuff from cmake
 - clean up remaining cmake files
 - create libtokudb_static.a in a cleaner way using cmake OBJECT libs (requires cmake 2.8.9)
 - use POSITION_INDEPENDENT_CODE property instead of manually setting -fPIC
for 5368:
 - fix compilation failures due to small differences between gcc and clang, mostly in tests
 - use toku_fileids_are_equal instead of memcmp to compare fileids (closes #5505)
 - create dummy implementation of partitioned_counter for osx (quick fix for, and closes #5506)
 - add mutex->valid bit under TOKU_PTHREAD_DEBUG
 - initialize mutex of DB_TXN created during recovery for 2PC (closes #5507)


git-svn-id: file:///svn/toku/tokudb@48024 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:07 -04:00
Leif Walsh
c75dae7ccd refs #5379 compile fix
git-svn-id: file:///svn/toku/tokudb@47042 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
Zardosht Kasheff
3a887ea75f refs #5312, merge to main
git-svn-id: file:///svn/toku/tokudb@47022 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:03 -04:00
Yoni Fogel
d4cf29525f refs #5081 Replace all usage:
BOOL->bool
FALSE->false
TRUE->true
u_int*_t->uint*_t

Also poisoned all of the variables

git-svn-id: file:///svn/toku/tokudb@46157 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:01 -04:00
Leif Walsh
aa786f0ba7 refs #5206 fix mutex initializer to be compatible with osx
git-svn-id: file:///svn/toku/tokudb@45964 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -04:00
Leif Walsh
958c447641 closes #5206 merge c++ changes to mainline
git-svn-id: file:///svn/toku/tokudb@45903 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:59 -04:00
Leif Walsh
d8601e192a [t:5069] move toku_mutex_t's locked member to only exist when compiling with TOKU_PTHREAD_DEBUG, for performance reasons
git-svn-id: file:///svn/toku/tokudb@44506 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:49 -04:00
Yoni Fogel
3a208cebc4 closes [t:4913]. Modelines now synchronized in every source/header file (and always top two lines)
git-svn-id: file:///svn/toku/tokudb@43762 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:36 -04:00
Rich Prohaska
fe705b3810 #4753 simplify pthread rwlocks interface closes[t:4753]
git-svn-id: file:///svn/toku/tokudb@43670 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:32 -04:00
Rich Prohaska
90b9137fd3 #4869 #4753 turn pthread debug off refs[t:4753]
git-svn-id: file:///svn/toku/tokudb@43591 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:31 -04:00
Rich Prohaska
6f8c78d19b #4869 #4753 simplify the pthreads api, remove dead code, remove untest error recovery patch, increase test coverage refs[t:4753]
git-svn-id: file:///svn/toku/tokudb@43590 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:31 -04:00
Rich Prohaska
0a2f3a36aa #4869 increase test coverage of txn.c, remove spin locks refs[t:4869]
git-svn-id: file:///svn/toku/tokudb@43421 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:27 -04:00
Leif Walsh
63b1969fbb [t:4814] merging cmake work to mainline
git-svn-id: file:///svn/toku/tokudb@43179 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:25 -04:00
Renamed from linux/toku_pthread.h (Browse further)