Leif Walsh
357a2ae13e
[t:5077] add a comparison function that compares 8 byte ints. closes #5077 .
...
git-svn-id: file:///svn/toku/tokudb@44885 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
5e21f02837
[t:5132] cast pthread_t through uintptr_t in order to print it in a way that's portable between linux and osx. closes #5132
...
git-svn-id: file:///svn/toku/tokudb@44882 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
60f6d80f4c
[t:5132] remove void * cast to at least fix on linux
...
git-svn-id: file:///svn/toku/tokudb@44874 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
c5fe132a9c
[t:5131] closes #5131 .
...
git-svn-id: file:///svn/toku/tokudb@44864 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:53 -04:00
Leif Walsh
4a505f74c4
[t:5078] closes #5078 .
...
also adds csv and tsv output formats (and some work on gnuplot)
git-svn-id: file:///svn/toku/tokudb@44863 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
John Esmet
5c4b1d60ce
close[t:5128] updating a descriptor now has two parts: user API that passes a FT and descriptor, and a low layer API that takes those two plus an explicit descriptor. we use the low layer one for deserialization code that wants to upgrade a descriptor for an FT that is not fully opened yet (and thus whose FT does not have a valid cachefile yet). this seems to be a clean enough solution, since it helps some upgrade code do non-standard stuff.
...
most importantly, loader-stress-test3 no longer fails by segfaulting on ft->cf->fd
git-svn-id: file:///svn/toku/tokudb@44839 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Leif Walsh
d038eef712
[t:4871] silly fix: parameter number test for 1426
...
git-svn-id: file:///svn/toku/tokudb@44837 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Leif Walsh
7a06c949f0
[t:4871] remove the need for the pre-dumped file for test1426, since we removed it from the repo
...
git-svn-id: file:///svn/toku/tokudb@44836 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Leif Walsh
bd5f5653c6
[t:5094] don't call toku_ydb_init or toku_ydb_destroy just because we're linking statically
...
git-svn-id: file:///svn/toku/tokudb@44835 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Leif Walsh
a2e135d4dd
[t:4838] remove test_locktree_close from bdb tests
...
git-svn-id: file:///svn/toku/tokudb@44834 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Leif Walsh
64b7587bed
[t:4871] fix ipo error for lock tree tests
...
git-svn-id: file:///svn/toku/tokudb@44829 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
John Esmet
0a1d95065c
[t:4838] the locktree now opens its own ft handle when created to ensure that the ft stays in memory so long as the lock tree is in memory. we use an on_create and on_destroy callback to keep the txn/ft logic out of the locktree. the api for toku_ltm_get_lt is a little hairy now. a better solution may come in the future. for now, the original failing test passes.
...
git-svn-id: file:///svn/toku/tokudb@44819 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Leif Walsh
d47220c827
[t:4686] [t:5123] [t:5062] merge #4686 to main, includes fix for #5123 . closes #4686 .
...
git-svn-id: file:///svn/toku/tokudb@44814 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
John Esmet
8e7bc18ed8
close[t:5124] use a cleaner way of access an FT_HANDLE's descriptor pointers at the ydb layer. comment the ft API, too.
...
git-svn-id: file:///svn/toku/tokudb@44811 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
John Esmet
99568e9652
[t:5113] carefully document a non-obvious contract requirement for change descriptor. clients may ONLY update a FT's cmp descriptor if it's the first operation done after open, before any reads or writes. further, remove the test - it's user error.
...
git-svn-id: file:///svn/toku/tokudb@44804 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Rich Prohaska
4f5584d7fe
#4536 build examples with shared or static tokudb libs refs[t:4536]
...
git-svn-id: file:///svn/toku/tokudb@44780 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
John Esmet
6418c5c80f
[t:5113] spruce up the default parameters and put a reader-writer lock around the global variable used in the assertion, so we know for certain we're not just racing to read THAT variable
...
git-svn-id: file:///svn/toku/tokudb@44778 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
John Esmet
f75af8ab78
[t:5113] first commit the test that exposes the bug
...
git-svn-id: file:///svn/toku/tokudb@44777 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
John Esmet
1cbfa22676
[t:4838] first push the test that exposes 4838
...
git-svn-id: file:///svn/toku/tokudb@44776 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
John Esmet
08531ecc0a
[t:5112] removed the fd param from update descriptor, improved the name, removed some unnecessary return codes from functions that cannot fail
...
git-svn-id: file:///svn/toku/tokudb@44771 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Leif Walsh
aebe247eaa
[t:5094] merge to main, delete dev branch. closes #5094 .
...
git-svn-id: file:///svn/toku/tokudb@44769 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Yoni Fogel
2ae8570c0e
[t:5110] Closes #5110 Skip taking the txn_manager lock for read-only transactions during note_abort/commit
...
git-svn-id: file:///svn/toku/tokudb@44758 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Leif Walsh
aa8727df6d
[t:4871] add test_stress_openclose.tdb to the list of stress tests that get ignored for valgrind/drd conflicts and things like that
...
git-svn-id: file:///svn/toku/tokudb@44756 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Yoni Fogel
051a3e818a
[t:5067] Closes #5067 Strengthen garbage_collection_debug
...
git-svn-id: file:///svn/toku/tokudb@44755 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Yoni Fogel
2c1583ca7c
[t:5106] closes #5106 Replaced txn omt (in FT) with integer
...
git-svn-id: file:///svn/toku/tokudb@44754 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Yoni Fogel
5cb07ca1fb
[t:5062] Fix compiler warning
...
git-svn-id: file:///svn/toku/tokudb@44752 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:52 -04:00
Yoni Fogel
a13c115502
[t:5067] Reduce GC-system overhead for read-only transactions
...
git-svn-id: file:///svn/toku/tokudb@44750 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
Yoni Fogel
a40533b723
[t:5067] Merge #5067 to main. New GC algorithm that calculates "live_list_reverse" on the fly when needed
...
git-svn-id: file:///svn/toku/tokudb@44749 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
John Esmet
d6b5f0b432
close[t:5100] close[t:4930] the api for closing a ft has been simplified for normal use. for recovery, there is a new function that internally asserts the underlying ft is close and passes a valid lsn to the cachefile for closing
...
git-svn-id: file:///svn/toku/tokudb@44748 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
Yoni Fogel
57a23f8f1f
[t:5103] Fix tests that don't provide a txn for logging commits/aborts/prepares
...
git-svn-id: file:///svn/toku/tokudb@44745 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
John Esmet
cdda8bfabe
close[t:5109] address some comments from code review concerning the naming of functions that remove an ft from memory vs removing a ft from the filesystem.
...
git-svn-id: file:///svn/toku/tokudb@44741 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
Bradley C. Kuszmaul
a9264b9627
Some comments written during the open/close fops code review.
...
git-svn-id: file:///svn/toku/tokudb@44737 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
Leif Walsh
f4f5ef8d49
[t:4871] fix ipo warnings when compiling range_tree/lock_tree tests
...
git-svn-id: file:///svn/toku/tokudb@44735 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
John Esmet
719d534277
[t:5101] toku_ft_update and toku_ft_set_update are dead code.
...
git-svn-id: file:///svn/toku/tokudb@44716 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
John Esmet
4cfdf9d21b
[t:5101] show ft blocknums is dead code
...
git-svn-id: file:///svn/toku/tokudb@44715 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
John Esmet
e01fda0615
[t:5101] do_push_command is dead code
...
git-svn-id: file:///svn/toku/tokudb@44714 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
John Esmet
2595599eff
[t:5101] height of root is dead code
...
git-svn-id: file:///svn/toku/tokudb@44713 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
John Esmet
7d6c001f3c
[t:5101] ft remove subdb is dead code
...
git-svn-id: file:///svn/toku/tokudb@44712 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
John Esmet
6222371969
[t:5101] ftenv is dead code
...
git-svn-id: file:///svn/toku/tokudb@44711 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
John Esmet
9da737bfb2
[t:5101] ft_sync + friends are dead code
...
git-svn-id: file:///svn/toku/tokudb@44710 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
John Esmet
f811db12aa
[t:5101] ftenv is dead code
...
git-svn-id: file:///svn/toku/tokudb@44709 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
Zardosht Kasheff
b4889da436
[t:5097], add fix and test for table corruption issue
...
git-svn-id: file:///svn/toku/tokudb@44705 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
Yoni Fogel
7b6973adb0
[t:4963] Fix bug with open/closing lock tree in multiple threads
...
The previous fix added a new race condition; When the new race hits, we leak lock trees.
git-svn-id: file:///svn/toku/tokudb@44677 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
John Esmet
ebd82144e8
[t:4938] can't run test_stress_openclose using bdb
...
git-svn-id: file:///svn/toku/tokudb@44676 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
Leif Walsh
94b291779a
[t:5094] revert change for #5094 because it doesn't work yet
...
git-svn-id: file:///svn/toku/tokudb@44672 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
Yoni Fogel
e061f6a1d6
[t:5062] Add some additional tests for cascading writes for unlogged parent txns
...
git-svn-id: file:///svn/toku/tokudb@44670 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
Yoni Fogel
79c9413f34
[t:5062] Add some additional tests for xids independent from lsns
...
git-svn-id: file:///svn/toku/tokudb@44669 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00
Leif Walsh
0da230d143
[t:5094] build libtokudb_static.a by extracting all .o files, recompiling
...
with -ipo-c into one .o, and rearchiving. closes #5094 .
git-svn-id: file:///svn/toku/tokudb@44667 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -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
Rich Prohaska
ce11ad3998
#4536 add a rule to build fractal tree examples in preparation to static library refs[t:4536]
...
git-svn-id: file:///svn/toku/tokudb@44664 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:51 -04:00