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
c029fe3f93
refs #5418 drive-by cleanup
...
git-svn-id: file:///svn/toku/tokudb@49043 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:13 -04:00
Leif Walsh
2537edef0e
refs #5368 fix unused warning on osx, and really stupid include file ordering issue
...
git-svn-id: file:///svn/toku/tokudb@48887 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:13 -04:00
Leif Walsh
264a8e65ed
refs #5592 fix linking of util, again...
...
git-svn-id: file:///svn/toku/tokudb@48823 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:13 -04:00
Leif Walsh
d70c82fd91
refs #5592 fix linking of util because of pthread keys
...
git-svn-id: file:///svn/toku/tokudb@48777 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:13 -04:00
Leif Walsh
774afe534d
refs #5592 move circular_buffer, omt, threadpool, growable_array, rwlock, frwlock, kibbutz, mempool, partitioned_counter, nb_mutex, sort to util/, and some other cleanup stuff
...
git-svn-id: file:///svn/toku/tokudb@48763 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:13 -04:00
Leif Walsh
221601543a
refs #5351 quick fix of timedpush
...
git-svn-id: file:///svn/toku/tokudb@48729 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:13 -04:00
Leif Walsh
87cf6985fd
refs #5351 add comments and a timed* api
...
git-svn-id: file:///svn/toku/tokudb@48727 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:13 -04:00
Leif Walsh
cd7c218570
refs #5351 fix a test deadlock
...
git-svn-id: file:///svn/toku/tokudb@48720 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:12 -04:00
Leif Walsh
32163e3389
refs #5351 fixes to circular buffer
...
git-svn-id: file:///svn/toku/tokudb@48718 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:12 -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
12143a6734
refs #5368 compile fix for test-affinity
...
git-svn-id: file:///svn/toku/tokudb@48695 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:12 -04:00
Leif Walsh
534b262792
refs #5368 add test for affinity code
...
git-svn-id: file:///svn/toku/tokudb@48694 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:12 -04:00
Leif Walsh
589813ac5c
refs #5368 add portability wrapper for sched_setaffinity/sched_getaffinity
...
git-svn-id: file:///svn/toku/tokudb@48692 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:12 -04:00
Leif Walsh
5abdff33ff
refs #5464 move partitioned_counters_init/destroy to portability
...
git-svn-id: file:///svn/toku/tokudb@48690 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:12 -04:00
Leif Walsh
3aa6cee438
refs #5464 had to move a few more things
...
git-svn-id: file:///svn/toku/tokudb@48679 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:12 -04:00
Leif Walsh
75e38b2d79
refs #5464 move partitioned_counter completely to portability
...
git-svn-id: file:///svn/toku/tokudb@48678 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:12 -04:00
Leif Walsh
97ad349826
refs #5537 zero out some structs because osx treats pthread_rwlock_init as "conditional jump on uninitialized values" and that's noise
...
git-svn-id: file:///svn/toku/tokudb@48424 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:12 -04:00
Leif Walsh
c3a0afeab3
refs #5368 unify race detection tool annotations in <toku_race_tools.h>
...
git-svn-id: file:///svn/toku/tokudb@48361 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:11 -04:00
Leif Walsh
a30ce5da8a
refs #5368 remove code which is unused except by a test I wrote, and is also very non-portable
...
git-svn-id: file:///svn/toku/tokudb@48347 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:11 -04:00
Leif Walsh
b3bae8602a
refs #5368 clean up toku_os_get_*rss
...
git-svn-id: file:///svn/toku/tokudb@48339 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:11 -04:00
Leif Walsh
2eb17c0e06
refs #5368 check return value in test-wss
...
git-svn-id: file:///svn/toku/tokudb@48335 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:11 -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
Leif Walsh
f6a4242420
refs #5368 add some more system checks
...
git-svn-id: file:///svn/toku/tokudb@48332 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:11 -04:00
Leif Walsh
eb81104629
refs #5368 use /usr/bin/env bash instead of /bin/bash for scripts
...
git-svn-id: file:///svn/toku/tokudb@48325 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:10 -04:00
Leif Walsh
c97c3e2a63
comment and extra semicolon removal
...
git-svn-id: file:///svn/toku/tokudb@48320 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:10 -04:00
Leif Walsh
2bc55f6b86
refs #4871 clean pwrite4g.data, it's big
...
git-svn-id: file:///svn/toku/tokudb@48317 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:10 -04:00
Rich Prohaska
38b3840b81
refs #5508 remove cpu affinity code that calculates the number of processors from the portability layer
...
git-svn-id: file:///svn/toku/tokudb@48302 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:10 -04:00
John Esmet
14087ae48f
refs #5525 remove obsolete Makefiles
...
git-svn-id: file:///svn/toku/tokudb@48240 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:10 -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
fffce5d49f
refs #5155 refs #5308 closes #5309 merge new omt api functions to main (still unused), use templated omt for TOKUTXN->open_fts, OMT becomes a wrapper for omt<OMTVALUE>, other misc fixes
...
git-svn-id: file:///svn/toku/tokudb@46448 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:02 -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
Rich Prohaska
f51339dd09
refs #5206 get file.c compiling on lex2
...
git-svn-id: file:///svn/toku/tokudb@45910 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:59 -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
a367232ad2
refs #5206 merge work making our code c99 and c++11 compatible, to mainline
...
git-svn-id: file:///svn/toku/tokudb@45632 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:58 -04:00
John Esmet
f4e8a41a99
[t:4871] fix compilation of test-fair-rwlock
...
git-svn-id: file:///svn/toku/tokudb@44666 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
Bradley C. Kuszmaul
925f584468
[t:4934] Get rid of 4934 stuff from main. Refs #4934 .
...
git-svn-id: file:///svn/toku/tokudb@44659 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:50 -04:00
Rich Prohaska
ddbc8a22eb
make the mainline portability tests compile
...
git-svn-id: file:///svn/toku/tokudb@44638 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:50 -04:00
Bradley C. Kuszmaul
7d2d1f30e8
Make the main line compile.
...
git-svn-id: file:///svn/toku/tokudb@44636 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:50 -04:00
Bradley C. Kuszmaul
b18a5e0080
[t:5091] Merge 44631 from ../tokudb.4934-branch-from.6.0.0. Refs #4934 , #5091 .
...
git-svn-id: file:///svn/toku/tokudb@44635 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:50 -04:00
Leif Walsh
d6d59ec4b5
[t:4871] use shared lib for {lock,range}_tree tests, speeds up build, and add prefixes to test names to use regexes better
...
also better osx/clang support, compile with -O4 now
and use the same compiler for the fractal tree and lzma
git-svn-id: file:///svn/toku/tokudb@44602 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:50 -04:00
Leif Walsh
dc4776a770
[t:4871] implement binary compilation options in a nicer way in cmake,
...
only do it for release builds, play nicer with multi-configuration
generators like vs and xcode
git-svn-id: file:///svn/toku/tokudb@44535 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:49 -04:00
Leif Walsh
d3a6f99e14
[t:5073] fix most clang problems on linux, ignore -Wcast-align for now
...
git-svn-id: file:///svn/toku/tokudb@44529 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:49 -04:00
Leif Walsh
5c89903804
[t:4871] fixing linking of portability and ydb layer with external things
...
git-svn-id: file:///svn/toku/tokudb@44509 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:49 -04:00
Leif Walsh
6f24c4fa88
[t:4871] clean up compilation flags across the board
...
git-svn-id: file:///svn/toku/tokudb@44507 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:49 -04:00