Dave Wells
3106fcce80
Fix recover-missing-logfiles test. In the process, define DB_CLOSE_DONT_TRIM_LOG flag for db_close. Also, remove some old, unused code
...
git-svn-id: file:///svn/toku/tokudb@14631 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:02 -04:00
Dave Wells
2137214802
fix maxlsn initialization if an empty logfile is encountered [t:1995]
...
git-svn-id: file:///svn/toku/tokudb@14611 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:02 -04:00
Dave Wells
53b854ac5a
build log file as part of test - ticket 1968
...
git-svn-id: file:///svn/toku/tokudb@14610 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:02 -04:00
Yoni Fogel
1b8ee601f3
Addresses #1737 refs[t:1737] Optimized le_has_xids
...
In the case where |XIDS| <= num xids in leafentry, and outermost uncommitted xid matches, and |XIDS|>2
git-svn-id: file:///svn/toku/tokudb@14588 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:02 -04:00
Rich Prohaska
8be7b61512
protect the logger's n_in_buf variable by increasing the scope of the logger's input lock close[t:2015]
...
git-svn-id: file:///svn/toku/tokudb@14581 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:02 -04:00
Yoni Fogel
465065c60c
Addresses #1737 refs[t:1737] Mega abort/mega commit messages coded
...
These messages are broadcast to an entire dictionary, aborting/committing a particular transaction only.
git-svn-id: file:///svn/toku/tokudb@14571 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:02 -04:00
Yoni Fogel
a5cf59455a
Closes #1969 closes[t:1969] Fix assertion in round_to_page
...
git-svn-id: file:///svn/toku/tokudb@14570 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:02 -04:00
Rich Prohaska
191d616ee8
add another test case for nested txn recovery [t:1960]
...
git-svn-id: file:///svn/toku/tokudb@14557 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:02 -04:00
Rich Prohaska
c8d8c5c907
valgrind 3.5.0 found some mem leaks in the tests [t:2001]
...
git-svn-id: file:///svn/toku/tokudb@14556 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:02 -04:00
Rich Prohaska
9d4f1ee78e
fix some recovery tests close[t:2005] close[t:2010]
...
git-svn-id: file:///svn/toku/tokudb@14546 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:02 -04:00
Rich Prohaska
21ff8f9541
get the checkpoint tests working again [t:1961]
...
git-svn-id: file:///svn/toku/tokudb@14545 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Barry Perlman
39a61f0312
Decruftify by removing redundant line of code.
...
git-svn-id: file:///svn/toku/tokudb@14526 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Dave Wells
5ed2e4dc34
fix logfile trimming code, change ydb.c to exclusively use toku_checkpoint
...
git-svn-id: file:///svn/toku/tokudb@14522 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Rich Prohaska
9c4739e8fd
call toku_checkpoint when the env closes [t:2001]
...
git-svn-id: file:///svn/toku/tokudb@14515 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Rich Prohaska
0b920d5f6c
require an env to create a db [t:2001]
...
git-svn-id: file:///svn/toku/tokudb@14513 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Rich Prohaska
d4c7ca77d9
fix up some compile issues [t:2003]
...
git-svn-id: file:///svn/toku/tokudb@14490 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Yoni Fogel
2fefaf6428
Closes #2003 closes [t:2003] add 'table lock on empty' log entry, and recovery logic for it.
...
git-svn-id: file:///svn/toku/tokudb@14489 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Yoni Fogel
c44cab7a53
No longer remove TAGS with 'clean'
...
git-svn-id: file:///svn/toku/tokudb@14488 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Rich Prohaska
0d06616161
capture the recover-staddle-txn.c test [t:2005]
...
git-svn-id: file:///svn/toku/tokudb@14485 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Rich Prohaska
e71ae871bd
build bins and tests as separate things [t:1864]
...
git-svn-id: file:///svn/toku/tokudb@14482 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Yoni Fogel
ef18530b7f
Addresses #679 refs[t:679] On upgrade from layout_version 10->11, remove checkpoint lsn from header
...
git-svn-id: file:///svn/toku/tokudb@14480 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Rich Prohaska
f424149c77
add Makefile rules for running recoveyr tests [t:1864]
...
git-svn-id: file:///svn/toku/tokudb@14460 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Yoni Fogel
1f72e6db67
Addresses #1936 refs[t:1936] Removed log_lsn/disk_lsn from nodes, added original version and version read from disk
...
Backwards compatibility for version 10 upgraded to support change (read lsns into void, set original/read_from_disk versions to 10 on read)
git-svn-id: file:///svn/toku/tokudb@14457 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Barry Perlman
995cf9a460
Addresses #1792 refs[t:1792] Improve checkpoint footprint.
...
git-svn-id: file:///svn/toku/tokudb@14448 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Barry Perlman
ee339d03aa
Addresses #1987 , #1936 refs[t:1987] refs[t:1936] Insert broadcast commit on upgrade from version 10 to 11, record original version in new header field. Also fixed incorrect message type for broadcast commit.
...
git-svn-id: file:///svn/toku/tokudb@14430 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Rich Prohaska
c629cb29bf
recovery bind's to filenum's [t:1998]
...
git-svn-id: file:///svn/toku/tokudb@14425 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Rich Prohaska
8e214a919d
filter some operations during recovery close[t:1993]
...
git-svn-id: file:///svn/toku/tokudb@14421 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Rich Prohaska
d081460bcf
fix the test1305 Makefile rule close[t:1997]
...
git-svn-id: file:///svn/toku/tokudb@14416 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Rich Prohaska
f330c83ebc
add db_env_set_checkpoint_callback2 to the known lists of globals close[t:1996]
...
git-svn-id: file:///svn/toku/tokudb@14415 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Rich Prohaska
f41af277a2
debug the logcursor-empty-logfile test [t:1995]
...
git-svn-id: file:///svn/toku/tokudb@14414 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Yoni Fogel
a86cbdb3d7
Windows port, changed long long to int64_t in logfilemanager
...
git-svn-id: file:///svn/toku/tokudb@14387 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Dave Wells
7e81e8be66
beginnings of logic to trim log files if possible. No actual trimming done yet
...
git-svn-id: file:///svn/toku/tokudb@14380 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:01 -04:00
Barry Perlman
0860425ef6
Addresses #1987 refs[t:1987] API and implementation of broadcast commit (all xids) message.
...
Cleaned up BRT_CMD vs BRT_MSG, removed logger from query path.
git-svn-id: file:///svn/toku/tokudb@14376 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Rich Prohaska
aa5f3c850e
fix a couple of set_data_dir bugs [t:1985]
...
git-svn-id: file:///svn/toku/tokudb@14375 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Barry Perlman
d69c552f03
Addresses #1987 refs[t:1987] Fully replace (rename) BRT_CMD with BRT_MSG (same struct) for consistency
...
git-svn-id: file:///svn/toku/tokudb@14372 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Barry Perlman
bc4e024d50
Addresses #1993 refs[t:1993] Added test of second callback to checkpoint.
...
git-svn-id: file:///svn/toku/tokudb@14370 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Barry Perlman
554596ce59
Addresses #1993 refs[t:1993] Added second callback to checkpoint.
...
git-svn-id: file:///svn/toku/tokudb@14369 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Rich Prohaska
f44c71dbdb
test case described by barry and yoni that requires LSN filtering during recovery [t:1993]
...
git-svn-id: file:///svn/toku/tokudb@14356 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Rich Prohaska
6a3d70f1cc
fix test-pwrite4g for 32 bit linux close[t:1992]
...
git-svn-id: file:///svn/toku/tokudb@14353 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Rich Prohaska
57ddbdd9f3
some changes related to recovery and the log. close[t:1959]
...
git-svn-id: file:///svn/toku/tokudb@14328 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Rich Prohaska
c6c07a4ade
require at least 1 log entry during recovery [t:1959]
...
git-svn-id: file:///svn/toku/tokudb@14315 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Rich Prohaska
94a5f224dd
test missing log entries [t:1959]
...
git-svn-id: file:///svn/toku/tokudb@14313 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Rich Prohaska
17b5331841
look for valgrind errors [t:1496]
...
git-svn-id: file:///svn/toku/tokudb@14310 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Rich Prohaska
bb837d4dfb
add some txnid comparison functions [t:1972]
...
git-svn-id: file:///svn/toku/tokudb@14309 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Rich Prohaska
e382a6bc88
add some txnid comparison functions [t:1972]
...
git-svn-id: file:///svn/toku/tokudb@14308 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Yoni Fogel
001bc6f4c3
Addresses #1976 refs[t:1976] Add warnings for code hygiene that windows compiler requires.
...
Cleaned up code to remove warnings.
git-svn-id: file:///svn/toku/tokudb@14306 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Rich Prohaska
68dc93d09b
fix some linux icc issues close[t:1975]
...
git-svn-id: file:///svn/toku/tokudb@14305 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Yoni Fogel
03d3cbfeb4
Addresses #1974 refs[t:1974] Add toku_portability include, fix printf type mismatches, svn ignore, function prototype cleanliness
...
git-svn-id: file:///svn/toku/tokudb@14304 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Yoni Fogel
535754ec12
Closes #1973 closes[t:1973] Log entry for DELETE_ANY no longer wastes memory on 'value'
...
git-svn-id: file:///svn/toku/tokudb@14292 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Rich Prohaska
8d44142ba8
fix some windows build problems
...
git-svn-id: file:///svn/toku/tokudb@14290 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00