Commit graph

4659 commits

Author SHA1 Message Date
Leif Walsh
d3b889e228 [t:4741] remove tabs, fix a little indentation
git-svn-id: file:///svn/toku/tokudb@43547 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:31 -04:00
Leif Walsh
2888f3a7ab [t:4741] rename functions that apply cmds, to reference the objects they're dealing with (i.e. leaf->bn)
git-svn-id: file:///svn/toku/tokudb@43546 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Rich Prohaska
08b523509f #4869 add a test that forces rollinclude log entries to be used refs[t:4869]
git-svn-id: file:///svn/toku/tokudb@43545 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Zardosht Kasheff
f65aa1311b [t:4741], remove unnecessary parameters
git-svn-id: file:///svn/toku/tokudb@43544 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Zardosht Kasheff
093807f687 [t:4741], slight optimization
git-svn-id: file:///svn/toku/tokudb@43543 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Zardosht Kasheff
ecce75bef0 [t:4741], more simplifications
git-svn-id: file:///svn/toku/tokudb@43542 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Rich Prohaska
6f9fddc762 #4884 remove local txn checkpoint log entry closes[t:4884]
git-svn-id: file:///svn/toku/tokudb@43538 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Rich Prohaska
2483237c12 #4869 remove trace_mem since it is not used and it can easily be resurrected if needed refs[t:4869]
git-svn-id: file:///svn/toku/tokudb@43537 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Rich Prohaska
bc7a6ba9b5 #4869 remove trace_mem since it is not used and it can easily be resurrected if needed refs[t:4869]
git-svn-id: file:///svn/toku/tokudb@43536 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Rich Prohaska
6b0c64e3ac #4768 get test running on bdb again refs[t:4768]
git-svn-id: file:///svn/toku/tokudb@43534 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Zardosht Kasheff
b667c1b272 [t:4741], remove reference to node->h in garbage collection
git-svn-id: file:///svn/toku/tokudb@43533 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Zardosht Kasheff
c61cedcc73 [t:4741], fix toku_bnc_flush_to_child
git-svn-id: file:///svn/toku/tokudb@43532 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Zardosht Kasheff
f3c2d203c8 [t:4741], tweak algorithm for measureing in-memory stats
git-svn-id: file:///svn/toku/tokudb@43530 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Leif Walsh
53a989fcb6 [t:4871] move generated logging code into the binary directory
git-svn-id: file:///svn/toku/tokudb@43527 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Zardosht Kasheff
b9cbde28aa [t:4879], remove unneeded code
git-svn-id: file:///svn/toku/tokudb@43526 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Zardosht Kasheff
1ddb1b0939 [t:4875], move descriptor code to brt_header.c
git-svn-id: file:///svn/toku/tokudb@43525 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Leif Walsh
740bd8b7f5 [t:4871] fix log code dependencies
git-svn-id: file:///svn/toku/tokudb@43524 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Leif Walsh
5894b15cba [t:4871] add make clean to the nightly script
git-svn-id: file:///svn/toku/tokudb@43520 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Leif Walsh
53f9054648 [t:4871] make newbrt tests use temp files in the build directory, not the source directory
git-svn-id: file:///svn/toku/tokudb@43513 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:30 -04:00
Leif Walsh
d3aaa32b20 [t:4882] change compression type to be set before create
this means you have to set the compression type before calling db->open
and you can't change it after that

we also log it now

this bumps the version layout to BRT_LAYOUT_VERSION_20


git-svn-id: file:///svn/toku/tokudb@43511 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Zardosht Kasheff
b2449e6b7b [t:4875], fix tests due to change in calculating stats->fsize
git-svn-id: file:///svn/toku/tokudb@43508 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Zardosht Kasheff
f666ee0394 [t:4875], move brt_stat64 work to brt_header.c
git-svn-id: file:///svn/toku/tokudb@43499 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Leif Walsh
fd11871393 [t:4241] use DBTs instead of kv_pairs. closes #4241
removes kv-pair.h completely. now childkeys are DBTs.

two new DBT functions help this. toku_clone_dbt memdup's the data.
toku_copyref_dbt steals the existing data and does not malloc.


git-svn-id: file:///svn/toku/tokudb@43495 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Zardosht Kasheff
7db834d5c9 [t:4765], remove usage of txn OMTs from toku_brt_root_put_cmd
git-svn-id: file:///svn/toku/tokudb@43494 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Leif Walsh
f84e764d96 [t:4871] run long tests on all builds on nightly tests
git-svn-id: file:///svn/toku/tokudb@43493 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Leif Walsh
6127e53606 [t:4871] don't run drd_test_4015 under memcheck
git-svn-id: file:///svn/toku/tokudb@43491 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Leif Walsh
a4fdd8d636 [t:4871] fixing warning options
git-svn-id: file:///svn/toku/tokudb@43489 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Rich Prohaska
28eb6df387 #4869 remove dead code from fifo.c refs[t:4869]
git-svn-id: file:///svn/toku/tokudb@43488 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Leif Walsh
c80afed609 [t:4871] increase test timeout for some valgrind tests
git-svn-id: file:///svn/toku/tokudb@43485 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Leif Walsh
d58b1a3331 [t:4871] really turn on -Werror, make things compile with it
git-svn-id: file:///svn/toku/tokudb@43473 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Leif Walsh
b971313f9f [t:4871] don't use version-script on darwin, it's unsupported
git-svn-id: file:///svn/toku/tokudb@43472 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Leif Walsh
0a6e7d3065 [t:4871] add <stdbool.h> to rwlock_condvar.h because it's needed on osx
git-svn-id: file:///svn/toku/tokudb@43468 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Leif Walsh
a97f51e3f0 [t:4277] fix clang compilation warning and make orthopush-flush faster
clang complains about a variable-length static array in a struct, this is
nonstandard

decrease the nodesize and bn size of orthopush-flush, this makes it run a
lot faster without losing effectiveness


git-svn-id: file:///svn/toku/tokudb@43465 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Zardosht Kasheff
ff743033dd [t:5875], some stylistic changes
git-svn-id: file:///svn/toku/tokudb@43464 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Zardosht Kasheff
bbad90a58f [t:4875], move some small functions over
git-svn-id: file:///svn/toku/tokudb@43463 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Zardosht Kasheff
5ff1a02587 [t:4875], fix setting of a header's root_blocknum to go through brt_header
git-svn-id: file:///svn/toku/tokudb@43461 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Leif Walsh
676654a13f [t:4778] upgrade subtree estimates to stat64info using real code. fix #4778
refactor existing node deserialization code so that upgrading a header can
call deserialization code on the root node and get stat64info instead of
deserializing it manually.


git-svn-id: file:///svn/toku/tokudb@43459 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Zardosht Kasheff
ee6094ccce [t:4875], move toku_calculate_root_offset_pointer to brt_header.c
git-svn-id: file:///svn/toku/tokudb@43457 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:29 -04:00
Leif Walsh
0fe5c41c2c [t:4871] increase timeout on recovery_fileops_unit.tdb
git-svn-id: file:///svn/toku/tokudb@43447 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:28 -04:00
Leif Walsh
06f94d3fc5 [t:4871] add --commit option to fractal tree tests script
git-svn-id: file:///svn/toku/tokudb@43446 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:28 -04:00
Leif Walsh
6067c6d3f9 [t:4871] make new test script executable
git-svn-id: file:///svn/toku/tokudb@43445 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:28 -04:00
Leif Walsh
bd78c8b33f [t:4871] add run.fractal.tree.tests.now.bash for running the nightly suite on a development checkout
git-svn-id: file:///svn/toku/tokudb@43443 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:28 -04:00
Zardosht Kasheff
28116fe48d [t:4872], fix warning
git-svn-id: file:///svn/toku/tokudb@43442 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:28 -04:00
Zardosht Kasheff
6f2c27d1de [t:4872], fix warning
git-svn-id: file:///svn/toku/tokudb@43441 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:28 -04:00
Leif Walsh
e057b9ad8c [t:4871] turn -Werror back on
git-svn-id: file:///svn/toku/tokudb@43440 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:28 -04:00
Leif Walsh
da397bda92 [t:4871] increase test timeouts for some more tests
git-svn-id: file:///svn/toku/tokudb@43438 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:28 -04:00
Zardosht Kasheff
66b56b6be0 [t:4874], make toku_brtheader_remove_txn_ref still depend on the ydb lock. Holding the header lock while trying to close leads to deadlocks. Need to rethink how to get close during toku_brtheader_remove_txn_ref working
git-svn-id: file:///svn/toku/tokudb@43437 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:28 -04:00
Zardosht Kasheff
2fae14ff30 [t:4874], fix silly bug in toku_brtheader_maybe_add_txn_ref
git-svn-id: file:///svn/toku/tokudb@43436 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:28 -04:00
Leif Walsh
2c4211ad93 [t:4871] build tag databases on generated headers
git-svn-id: file:///svn/toku/tokudb@43435 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:28 -04:00
Zardosht Kasheff
34b3dae38e [t:4880], fix toku_brtheader_get_some_existing_brt
git-svn-id: file:///svn/toku/tokudb@43434 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:28 -04:00