Commit graph

878 commits

Author SHA1 Message Date
Rich Prohaska
227bdf60da try to malloc after a realloc failure. addresses #1328
git-svn-id: file:///svn/toku/tokudb.1032b@8404 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:32 -04:00
Yoni Fogel
44404dfbe1 Addresses #1338
Added test to stress logger opening and close, fixed bug
where memory is not set to 0

git-svn-id: file:///svn/toku/tokudb.1032b@8402 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:32 -04:00
Yoni Fogel
7a5104f5b7 Addresses #1032
Compile bug

git-svn-id: file:///svn/toku/tokudb.1032b@8401 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:32 -04:00
Yoni Fogel
8e216ef203 Addresses #1338
Save return code of inner main function

git-svn-id: file:///svn/toku/tokudb.1032b@8399 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:32 -04:00
Yoni Fogel
3663cbb8db Closes #1339
Logger now unlocks all mutexes and destroys the two mutexes it contains.

Protected by a logger-close mutex to prevent anything from happening between the unlock and destroy.

git-svn-id: file:///svn/toku/tokudb.1032b@8397 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:32 -04:00
Yoni Fogel
908ba5ecf4 Addresses #1338
All newbrt tests now call toku_brt_init/destroy

git-svn-id: file:///svn/toku/tokudb.1032b@8393 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:32 -04:00
Rich Prohaska
fb09b9b81e app verifier now likes the brt-serialize-test. closes #1337
git-svn-id: file:///svn/toku/tokudb.1032b@8392 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:32 -04:00
Rich Prohaska
59b77964e8 init the mutex before we use it. closes #1336
git-svn-id: file:///svn/toku/tokudb.1032b@8391 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:32 -04:00
Rich Prohaska
cf092f028b fix windows compile issues. addresses #1328
git-svn-id: file:///svn/toku/tokudb.1032b@8372 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Rich Prohaska
71329202bb add some debugging code. addresses #1328
git-svn-id: file:///svn/toku/tokudb.1032b@8371 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Rich Prohaska
cb4a4a2634 try to solve 1328. addresses #1328
git-svn-id: file:///svn/toku/tokudb.1032b@8366 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Rich Prohaska
b5ec076118 dump some debug info to test 1328. addresses #1328
git-svn-id: file:///svn/toku/tokudb.1032b@8343 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Rich Prohaska
be39f82615 assert NULL realloc. addresses #1328
git-svn-id: file:///svn/toku/tokudb.1032b@8340 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Yoni Fogel
30f7ebcffa Addresses #1305
Port test to windows (took large stack item and made it static)
Added debugging info for verbose mode

git-svn-id: file:///svn/toku/tokudb.1032b@8338 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Yoni Fogel
da1894f7d6 Addresses #1308
Port test1308a to windows

git-svn-id: file:///svn/toku/tokudb.1032b@8324 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Bradley C. Kuszmaul
63bdae2d80 Fix up makefile. Addresses #1305.
git-svn-id: file:///svn/toku/tokudb.1032b@8303 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Bradley C. Kuszmaul
6232f7a211 Fixes #1322.
git-svn-id: file:///svn/toku/tokudb.1032b@8301 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Rich Prohaska
6b31c10d81 fix the checko2 rule. closes #1316
git-svn-id: file:///svn/toku/tokudb.1032b@8288 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Rich Prohaska
d8b0d25a31 fix checko2 rule
git-svn-id: file:///svn/toku/tokudb.1032b@8281 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Bradley C. Kuszmaul
da3a9e1430 Misnamed test. Addresses #1308.
git-svn-id: file:///svn/toku/tokudb.1032b@8280 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Bradley C. Kuszmaul
2e02d2518b Candidate fix for #1308 (part a). Addresses #1308.
git-svn-id: file:///svn/toku/tokudb.1032b@8279 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Bradley C. Kuszmaul
b10f23d122 Test appears to demonstrate failure on 32 bit, and doesn't fail on 64 bit (for the first test in #1308). Addresses #1308.
git-svn-id: file:///svn/toku/tokudb.1032b@8278 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Bradley C. Kuszmaul
244db7712a Create a test for 1308. Addresses #1308.
git-svn-id: file:///svn/toku/tokudb.1032b@8277 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Bradley C. Kuszmaul
d10bfb9104 Create a test for 1308. Addresses #1308.
git-svn-id: file:///svn/toku/tokudb.1032b@8276 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Bradley C. Kuszmaul
95c77b2f6a Fix two of the cases in #1308. Addresses #1308.
git-svn-id: file:///svn/toku/tokudb.1032b@8274 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Bradley C. Kuszmaul
75369283fa Merge changes back to tokudb.1032b. Fixes #1305.
git-svn-id: file:///svn/toku/tokudb.1032b@8272 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Yoni Fogel
cfb07b7d5d Addresses #1307
fstat calls replaced with toku_os calls.
fstat deprecated everywhere except the 'linux' portability directory

git-svn-id: file:///svn/toku/tokudb.1032b@8264 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Bradley C. Kuszmaul
a52be1bd7e Candidate fix for #1305 (no test case written yet, so it isn't fixed.) Addresses #1305.
git-svn-id: file:///svn/toku/tokudb.1032b@8250 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Zardosht Kasheff
1e794e4d01 addresses #1032
put locks around pread

git-svn-id: file:///svn/toku/tokudb.1032b@8179 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Yoni Fogel
ca79f7aed3 Addresses #1296
Global mutexes are now initialized in toku_ydb_init, destroyed in toku_ydb_destroy.

Globals in tdbtrace.c (not default) are not yet initialized.

git-svn-id: file:///svn/toku/tokudb.1032b@8149 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Yoni Fogel
373892cbda Closes #1295
Merged in 1.08.1 fixes as well as some minor changes required to get them to work/Makefiles

git-svn-id: file:///svn/toku/tokudb.1032b@8148 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Zardosht Kasheff
b459365b55 addresses #1261
enable writer cache thread

git-svn-id: file:///svn/toku/tokudb.1032b@8147 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:30 -04:00
Rich Prohaska
033a67e739 add a rule to run -ipo-c for a windows release build. addresses #1032
git-svn-id: file:///svn/toku/tokudb.1032b@8038 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:29 -04:00
Zardosht Kasheff
ed472f23c8 addresses #1268
fix construct_full_name so that absolute windows paths do not get modified

git-svn-id: file:///svn/toku/tokudb.1032b@8019 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:29 -04:00
Rich Prohaska
4f46b25a02 rename to toku_portability.h addresses #1269
git-svn-id: file:///svn/toku/tokudb.1032b@7952 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:29 -04:00
Rich Prohaska
b33a14f4c7 cleanup a couple of icc compiler warnings.
git-svn-id: file:///svn/toku/tokudb.1032b@7896 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:29 -04:00
Rich Prohaska
d063208a7b replace htonl with toku_htonl. addresses #1255
git-svn-id: file:///svn/toku/tokudb.1032b@7892 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:29 -04:00
Rich Prohaska
987c03b986 merge tokudb revision 7776-7883 to toudb.1032b. closes #1260
git-svn-id: file:///svn/toku/tokudb.1032b@7888 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:29 -04:00
Rich Prohaska
a12ca96fba use toku_htonl. closes #1247
git-svn-id: file:///svn/toku/tokudb.1032b@7850 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:29 -04:00
Rich Prohaska
6ebe124875 imp toku_os_ closes #1253
git-svn-id: file:///svn/toku/tokudb.1032b@7837 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:28 -04:00
Rich Prohaska
bf1af189e0 test with icc on linux. addresses #1032
git-svn-id: file:///svn/toku/tokudb.1032b@7810 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:28 -04:00
Rich Prohaska
c0c1d592e8 found a bug in the test with icc on linux. addresses #1032
git-svn-id: file:///svn/toku/tokudb.1032b@7809 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:28 -04:00
Rich Prohaska
fefecf69dd merge brt_truncate into 1032b. addresses #1032
git-svn-id: file:///svn/toku/tokudb.1032b@7803 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:27 -04:00
Rich Prohaska
25fd1c0f6f turn off the cachetable writer threads on windows for now. addresses #1023
git-svn-id: file:///svn/toku/tokudb.1032b@7788 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:27 -04:00
Rich Prohaska
9fe13ba86b merge 1032 into 1032b. addresses #1032
git-svn-id: file:///svn/toku/tokudb.1032b@7787 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:27 -04:00
Rich Prohaska
927dc43b4e there is no brt_flush. addresses #1032
git-svn-id: file:///svn/toku/tokudb.1032b@7786 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:27 -04:00
Rich Prohaska
84a5198b84 merge 1032 into 1032b. addresses #1032
git-svn-id: file:///svn/toku/tokudb.1032b@7782 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:27 -04:00
Rich Prohaska
730e17faaf merge 1032 into 1032b. addresses #1032
git-svn-id: file:///svn/toku/tokudb.1032b@7781 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:27 -04:00
Rich Prohaska
fbfd0476ba more merging of 1032 to 1032b. addresses #1032
git-svn-id: file:///svn/toku/tokudb.1032b@7779 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:27 -04:00
Rich Prohaska
0d44815bf5 merge some tokudb.1032 into 1032b. addresses #1032
git-svn-id: file:///svn/toku/tokudb.1032b@7778 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:27 -04:00