Commit graph

360 commits

Author SHA1 Message Date
Leif Walsh
5d80ee158e closes #5380 add mutex assertions in fair rwlock, only active during debug builds
git-svn-id: file:///svn/toku/tokudb@47041 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
Leif Walsh
ca7781d92d refs #5378 merge to main
git-svn-id: file:///svn/toku/tokudb@47027 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
Zardosht Kasheff
b2c3633e70 closes #5388, batch pins for keyrange
git-svn-id: file:///svn/toku/tokudb@47026 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
Leif Walsh
5526cd549f refs #5367 fix toku_verify_ftnode_internal to not exit on success ;-)
git-svn-id: file:///svn/toku/tokudb@46994 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:03 -04:00
Zardosht Kasheff
13dbeb5130 closes #5387, fix issue, sleep at most once during get_and_pin_with_dep_pairs
git-svn-id: file:///svn/toku/tokudb@46955 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:03 -04:00
Leif Walsh
d7cbb0f9d9 refs #5386 add comments
git-svn-id: file:///svn/toku/tokudb@46954 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:03 -04:00
Leif Walsh
735ecd2130 closes #5386 refactor try_pin_pair to avoid deadlock
git-svn-id: file:///svn/toku/tokudb@46953 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:03 -04:00
Yoni Fogel
cea1d0b95d refs #5367 Fix verify to work properly with marked messages
First it evaluates using a write lock on a node (before moving messages)
and then doing it again after moving messages
Does appropriate checks before and after

git-svn-id: file:///svn/toku/tokudb@46949 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:03 -04:00
Yoni Fogel
52dd11a5b4 closes #5367 Fix problem where nodes in omt are marked stale, the node is evicted and read again and not marked stale ever again
git-svn-id: file:///svn/toku/tokudb@46947 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:03 -04:00
Yoni Fogel
4407c947c6 refs #5367 Revert r46901 (incorrect fix)
git-svn-id: file:///svn/toku/tokudb@46945 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:03 -04:00
Leif Walsh
e5a3993c58 closes #5367 fix a race between marking messages as stale in the fifo and in the omt
git-svn-id: file:///svn/toku/tokudb@46901 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:03 -04:00
Leif Walsh
79e869231d refs #5367 fix verify to work with marked messages
git-svn-id: file:///svn/toku/tokudb@46852 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:03 -04:00
Zardosht Kasheff
6389aeb1b7 closes #5283, delete workqueue code, it is now unused
git-svn-id: file:///svn/toku/tokudb@46801 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:03 -04:00
Zardosht Kasheff
7ea6dd4171 refs #4606, merge to main
git-svn-id: file:///svn/toku/tokudb@46797 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:03 -04:00
Bradley C. Kuszmaul
8cc19d274c Fix #5369 (partitioned counter asserts because it expects the counter to go monotonically up, but part of the test decrements). Change it so that it only increments in the test.
git-svn-id: file:///svn/toku/tokudb@46778 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:03 -04:00
Leif Walsh
26ab20b2d8 closes #5362 add helgrind_test_partitioned_counter
git-svn-id: file:///svn/toku/tokudb@46774 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:03 -04:00
Bradley C. Kuszmaul
5fe06a891f Fix #5361 by locking a little earlier. This passes with helgrind but helgrind isn't yet part of the tests.
git-svn-id: file:///svn/toku/tokudb@46721 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:02 -04:00
Yoni Fogel
4efdcc43de refs #5355 Fix omt::delete_all_marks to not blow the stack
git-svn-id: file:///svn/toku/tokudb@46669 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:02 -04:00
John Esmet
01068d0c1d fixes #4752 support blackhole option in tokudb, add it to the stress test framework as well as an option for prelocked write. we also fix the flags api in the ft layer to return void since they can't fail.
git-svn-id: file:///svn/toku/tokudb@46644 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:02 -04:00
John Esmet
16b31e1576 refs #5349 committing txn_manage_lock and unlock wrapper functions to main
git-svn-id: file:///svn/toku/tokudb@46624 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:02 -04:00
Leif Walsh
8f1ee9c29c refs #5155 merge some work to main:
- better delete marked algorithm
 - use marked omt for fresh message tree
 - little cleanup things


git-svn-id: file:///svn/toku/tokudb@46549 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:02 -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
Bradley C. Kuszmaul
c9630e45b3 Fix #5321. Refs #5295, #5292, #5290. {{{svn merge -r46336:46350 ../tokudb.5321}}}
git-svn-id: file:///svn/toku/tokudb@46351 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:02 -04:00
Bradley C. Kuszmaul
a4de094b19 make {{{test_partitioned_counter}}} exhibit the bug from Refs #5321.
git-svn-id: file:///svn/toku/tokudb@46348 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:02 -04:00
Bradley C. Kuszmaul
7a6b7c9896 Fix #5295, #5292. {{{svn merge -r46285:46297 ../tokudb.5295b}}}
git-svn-id: file:///svn/toku/tokudb@46309 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:02 -04:00
Yoni Fogel
87824fb3df refs #5308 Remove unused omt/omt-tmpl functions (and tests for them)
git-svn-id: file:///svn/toku/tokudb@46193 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:01 -04:00
Yoni Fogel
f3455ce7dc closes #5108 Remove finalize_callback (poisons lock tree)
It's unnecessary since we never reuse filenames anyway.

git-svn-id: file:///svn/toku/tokudb@46191 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:01 -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
Bradley C. Kuszmaul
ef8598b97c {{{svn merge -c -46044 .}}}. Back out of main. Refs #5267, #5290.
git-svn-id: file:///svn/toku/tokudb@46077 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:01 -04:00
Bradley C. Kuszmaul
24af2d9a5b Merge partitioned counters onto main. Fixes #5267.
git-svn-id: file:///svn/toku/tokudb@46044 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:01 -04:00
Yoni Fogel
7a003cd9d5 refs #5139 separate omt-tmpl implementation (partially)
git-svn-id: file:///svn/toku/tokudb@45984 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -04:00
Yoni Fogel
d4555bcd38 refs #5206 little bit more documentation for omt-tmpl.h
git-svn-id: file:///svn/toku/tokudb@45983 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -04:00
Yoni Fogel
58dbd4a071 refs #5139 add documentation for templated omt
git-svn-id: file:///svn/toku/tokudb@45981 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -04:00
Yoni Fogel
3dbff30332 refs #5280 add portability include to compress.cc
git-svn-id: file:///svn/toku/tokudb@45978 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -04:00
Yoni Fogel
2f23fc5db1 refs #5280 Add additional warning options and get it to compile cleanly.
Add comments and static asserts for on-disk formats (e.g. leafentries)

git-svn-id: file:///svn/toku/tokudb@45977 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -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
3045809973 refs #5206 fix usage of <type_traits> on clang, fix omt::split_at return value
git-svn-id: file:///svn/toku/tokudb@45963 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -04:00
John Esmet
f5be016dea fixes #5282 only do txn related operations if a txn exists. note that the ydb layer properly handles change descriptor in a txnless environment.
git-svn-id: file:///svn/toku/tokudb@45958 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -04:00
Leif Walsh
f48d3b9fdc refs #5206 fix use of __attribute__((nonnull)) for intel compiler
git-svn-id: file:///svn/toku/tokudb@45953 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -04:00
Leif Walsh
b0e69456f9 refs #5206 fix shadow resolution style from underscore suffix to "new_" prefix
git-svn-id: file:///svn/toku/tokudb@45944 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -04:00
Leif Walsh
f5c2d4de8d refs #5206 adding some consts
git-svn-id: file:///svn/toku/tokudb@45943 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -04:00
Leif Walsh
816415fcd6 refs #5206 remove indentation caused by namespace
git-svn-id: file:///svn/toku/tokudb@45942 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -04:00
Leif Walsh
c010c1e56e refs #5206 address review comments: only use refs when ref-to-const, otherwise use ptr
git-svn-id: file:///svn/toku/tokudb@45941 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -04:00
Leif Walsh
8fa5ec3e82 refs #5206 address review comments: remove static "allocation constructors", rename init/deinit to create/destroy
git-svn-id: file:///svn/toku/tokudb@45938 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -04:00
Zardosht Kasheff
c5d2402ac0 closes #5279, remove cachetable->checkpoint_is_beginning and cachetable->checkpoint_prohibited
git-svn-id: file:///svn/toku/tokudb@45932 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:00 -04:00
Zardosht Kasheff
f402d9dbaa closes #5272, address CR comments
git-svn-id: file:///svn/toku/tokudb@45930 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
Zardosht Kasheff
18babb7812 closes #5265, add comments for bjm and add lock around bjm_reset
git-svn-id: file:///svn/toku/tokudb@45853 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:59 -04:00
Bradley C. Kuszmaul
416dad85fe Fix #5161. Partitioned statistics implemented.
git-svn-id: file:///svn/toku/tokudb@45847 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:59 -04:00