Commit graph

2549 commits

Author SHA1 Message Date
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
Rich Prohaska
308e75d161 look for memory leaks that valgrind may find by running valgrind with a log file and examining it for errors [t:1496]
git-svn-id: file:///svn/toku/tokudb@14289 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Rich Prohaska
5f4d2156f3 rename x1.c to recover-x1.c etc [t:1964]
git-svn-id: file:///svn/toku/tokudb@14285 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Rich Prohaska
6c5a3ebfa7 merge 1964 to main [t:1964]
git-svn-id: file:///svn/toku/tokudb@14284 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Yoni Fogel
a560d73dd0 Closes #1971 closes[t:1971] Hack (redefine UU() again in rwlock.h) to fix windows compile.
This appears to be needed due to a bug (feature to copy microsoft perhaps?) of intel compiler in windows
where some macro functions do not propogate from headers to later headers

git-svn-id: file:///svn/toku/tokudb@14244 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:00 -04:00
Rich Prohaska
125a343010 turn down the valgrind noise for some recovery tests [t:1844]
git-svn-id: file:///svn/toku/tokudb@14237 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Rich Prohaska
a70ee50389 fix a logcursor bug with empty log files [t:1943]
git-svn-id: file:///svn/toku/tokudb@14236 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Rich Prohaska
3e75522377 dont run the log recover tests with valgrind since the env is deliberately not closed [t:1844]
git-svn-id: file:///svn/toku/tokudb@14229 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Rich Prohaska
dd650a9168 rename some functions [t:1966]
git-svn-id: file:///svn/toku/tokudb@14219 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Rich Prohaska
1a7354b892 merge recovery key compare function to main. close[t:1966]
git-svn-id: file:///svn/toku/tokudb@14218 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Bradley C. Kuszmaul
ca1ed58974 The good stuff from #1884 up to changeset:14213. Refs #1884. [t:1884].
* Block allocation is now first-fit.
 * There is a better test for the block allocator.
 * brt_stat64 returns data in a struct instead of a bunch of arguments.
 * Nodes are set clean after serialization.


git-svn-id: file:///svn/toku/tokudb@14214 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Rich Prohaska
26c68b80d9 add treeflags to the fcreate log entry close[t:1965]
git-svn-id: file:///svn/toku/tokudb@14200 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Rich Prohaska
965cfcea0f tests log8, log9, and log10 are XFAIL for now [t:1844]
git-svn-id: file:///svn/toku/tokudb@14183 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Rich Prohaska
8e2d40b9b0 merge tokudb.1844 to main close[t:1844]
git-svn-id: file:///svn/toku/tokudb@14180 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Yoni Fogel
6e14e934fa Addresses #1963, #1866 refs[t:1963] refs[t:1866] Minor optimizations to maybe_get_and_pin_clean, associate with shortcut query
git-svn-id: file:///svn/toku/tokudb@14169 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Yoni Fogel
316b9c96ed Addresses #1112 refs[t:1112] Implement 'flatten' function at brt layer
git-svn-id: file:///svn/toku/tokudb@14168 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Rich Prohaska
f44c0b8ae6 merge tokudb.1960.recovery to main close[t:1950]
git-svn-id: file:///svn/toku/tokudb@14160 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Barry Perlman
52b0848db8 Addresses #1963 refs[t:1963] (expected to be) minor optimizations to maybe_get_and_pin
git-svn-id: file:///svn/toku/tokudb@14131 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Rich Prohaska
2cda63bc01 merge -c 14118 tokudb.1960 to main [t:1960]
git-svn-id: file:///svn/toku/tokudb@14119 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Rich Prohaska
d6e7363852 x2 is expected to work [t:1823]
git-svn-id: file:///svn/toku/tokudb@14117 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Bradley C. Kuszmaul
b63de170d5 Merge fix for #1957 to mainline and #1884. Fixes #1957. [t:1884] close[t:1957]
git-svn-id: file:///svn/toku/tokudb@14113 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Rich Prohaska
3ab3cbbfcc some progress on recovery close[t:1835]
git-svn-id: file:///svn/toku/tokudb@14112 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Yoni Fogel
2e9838edcb Addresses #1956 refs[t:1956] Add two more tests for the range_reverse queries
git-svn-id: file:///svn/toku/tokudb@14090 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Yoni Fogel
d2cae8914e Addresses #1956 refs[t:1956] Add c_getf_set_range_reverse, c_getf_get_both_range_reverse, (and c_get versions)
Equivalent to non-reverse but just changes the search direction

git-svn-id: file:///svn/toku/tokudb@14086 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Yoni Fogel
73ec532840 Closes #1944 closes[t:1944] Removed unnecessary insert of ("a","b") for every transaction
git-svn-id: file:///svn/toku/tokudb@14048 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:59 -04:00
Rich Prohaska
8a404510eb port logcursor to windows [t:1942]
git-svn-id: file:///svn/toku/tokudb@14035 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Rich Prohaska
ceb7a3036e merge -c 14032 from tokudb.1835.recovery to main close[t:1831]
git-svn-id: file:///svn/toku/tokudb@14033 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Rich Prohaska
584c66dca2 add a timestamp to the checkpoint begin and end log entries close[t:1855]
git-svn-id: file:///svn/toku/tokudb@13992 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Yoni Fogel
8e18af9f02 Addresses #1125 refs[t:1125] windows warning-removal port of brtdump supporting XIDS
git-svn-id: file:///svn/toku/tokudb@13990 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Zardosht Kasheff
20a1b62d05 addresses BUILD, make temporary change to get windows compiling
git-svn-id: file:///svn/toku/tokudb@13989 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Rich Prohaska
24fbaeeb16 fix 32 bit compile on linux [t:1926]
git-svn-id: file:///svn/toku/tokudb@13983 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Yoni Fogel
80e1406125 Addresses #1924 refs[t:1924] Upgrade (10->11) test added.
We have a saved version 10 db that has 1 of each type of leafentry, and 1 of each (interesting) type of message
We have an LE_COMMITTED,
and XID=0 and XID!=0 versions of:  LE_PROVPAIR, LE_PROVDEL, LE_BOTH

For messages, the loading logic doesn't care about the type at all.
The upgrade logic cares only whether XID is 0, so we have one with 0, one with non 0.

git-svn-id: file:///svn/toku/tokudb@13974 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Dave Wells
3523924d66 logcursor changes, fix LSNs, make progress on tests [t:1926]
git-svn-id: file:///svn/toku/tokudb@13970 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00