Commit graph

2535 commits

Author SHA1 Message Date
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
Yoni Fogel
9197483c86 Addresses #1125 refs[t:1125] brtdump upgraded to support XIDS in messages
git-svn-id: file:///svn/toku/tokudb@13968 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Yoni Fogel
e725b4e048 Addresses #1924 refs[t:1924] Windows port of upgrade logic
Marked functions as static, removed some obsolete ones.

git-svn-id: file:///svn/toku/tokudb@13956 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Yoni Fogel
a284c6a952 Addresses #1924 refs[t:1924] Fixed upgrade logic: use separate mempool/omt for version 10/11
git-svn-id: file:///svn/toku/tokudb@13943 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Yoni Fogel
fee19e875a Addresses #1924 refs[t:1924] Initial version of upgrade (10->11) logic is complete
git-svn-id: file:///svn/toku/tokudb@13938 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Rich Prohaska
925726bc55 fix the print of the log version close[t:1933]
git-svn-id: file:///svn/toku/tokudb@13913 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Yoni Fogel
ffbadf36c2 Addresses #1924 refs[t:1924] Clean up deserialize brtnode in preparation for upgrade logic
git-svn-id: file:///svn/toku/tokudb@13911 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Yoni Fogel
aec9db6607 Addresses #1931 refs[t:1931] libtokudb.pdb is moved to lib/
git-svn-id: file:///svn/toku/tokudb@13874 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Yoni Fogel
cbee9b0e49 Addresses #1924 refs[t:1924] Added upgrade logic for brt header
git-svn-id: file:///svn/toku/tokudb@13870 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Dave Wells
982ae26a4e update
git-svn-id: file:///svn/toku/tokudb@13862 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Rich Prohaska
ed119ba646 get the timestamp test working refs[t:1910]
git-svn-id: file:///svn/toku/tokudb@13853 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Yoni Fogel
056c85329d Addresses #1924 refs[t:1924] Deleted support for obsolete disk formats
git-svn-id: file:///svn/toku/tokudb@13852 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Yoni Fogel
9f8047a8fb Addresses #1927 closes[t:1927] Make db->getf_set and db->getf_get_both externally visible
git-svn-id: file:///svn/toku/tokudb@13851 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Rich Prohaska
b0dae87bc0 get the timestamp test working refs[t:1910]
git-svn-id: file:///svn/toku/tokudb@13838 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00
Rich Prohaska
a32b708fa5 fix the recovery tests. close[t:1910]
git-svn-id: file:///svn/toku/tokudb@13835 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:58 -04:00