Commit graph

378 commits

Author SHA1 Message Date
Leif Walsh
b9716da140 refs #5312 fix a bit of strangeness that's not exactly a bug
git-svn-id: file:///svn/toku/tokudb@47256 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:05 -04:00
Zardosht Kasheff
f812f52b82 refs #5407, modify a test, no progress on actual bug yet
git-svn-id: file:///svn/toku/tokudb@47208 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:05 -04:00
Zardosht Kasheff
7015e79fe0 closes #5406, fix test
git-svn-id: file:///svn/toku/tokudb@47206 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:05 -04:00
Zardosht Kasheff
e6f4302120 refs #5406, remove tabs from file
git-svn-id: file:///svn/toku/tokudb@47205 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:05 -04:00
Christian Rober
f3fab8cd8d refs #5086 adding function declarations for compilation errors on clang, added macro usage to prevent clang from being too strict about POD.
git-svn-id: file:///svn/toku/tokudb@47173 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:05 -04:00
Zardosht Kasheff
667344b549 refs #5198, add comments documenting client contract
git-svn-id: file:///svn/toku/tokudb@47158 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:05 -04:00
Zardosht Kasheff
1014cea11d refs #5370, remove HELGRIND DISABLE stuff for partitioned counters
git-svn-id: file:///svn/toku/tokudb@47149 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
Zardosht Kasheff
c26e8d0c93 refs #5370, put partitioned counters in evictor
git-svn-id: file:///svn/toku/tokudb@47148 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
Leif Walsh
b53d614cbb refs #4937 set message's msn after splitting the root to avoid a race
git-svn-id: file:///svn/toku/tokudb@47096 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
Zardosht Kasheff
d59b9e772d refs #4937, merge to main
git-svn-id: file:///svn/toku/tokudb@47083 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
Yoni Fogel
54e6923893 refs #5395 Fix regression from r43886. Continue to mark both nodes dirty when splitting a non-leaf.
git-svn-id: file:///svn/toku/tokudb@47076 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
Christian Rober
6c722feb9f refs #5086 added function declarations to fix clang errors.
git-svn-id: file:///svn/toku/tokudb@47064 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
Zardosht Kasheff
486b286813 closes #5393, add a comment
git-svn-id: file:///svn/toku/tokudb@47057 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
Zardosht Kasheff
6b92068228 refs #5393, fix cachetable-simple-pin-cheap.cc
git-svn-id: file:///svn/toku/tokudb@47056 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
Zardosht Kasheff
037ebcd3f5 refs #5393, make fix, still need to fix cachetable-simple-pin-cheap.cc
git-svn-id: file:///svn/toku/tokudb@47055 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
Zardosht Kasheff
6a354be9ad refs #5393, remove what is now an invalid test
git-svn-id: file:///svn/toku/tokudb@47054 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
Leif Walsh
e88f12fc3e refs #5380 fix unit test to take mutex around rwlock functions
git-svn-id: file:///svn/toku/tokudb@47044 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
Leif Walsh
f8baef6ceb refs #5380 don't assert_locked during call to writers(), we may call this when we assume we own the write lock, and therefore don't need the mutex
git-svn-id: file:///svn/toku/tokudb@47043 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:04 -04:00
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