Commit graph

2019 commits

Author SHA1 Message Date
Yoni Fogel
2c8ffa5068 Addresses #1032
Fix compile for tests.

git-svn-id: file:///svn/toku/tokudb.1032b@8408 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:32 -04:00
Yoni Fogel
1c9bd84222 Addresses #1339
Clean up properly on a logger that was not fully opened

git-svn-id: file:///svn/toku/tokudb.1032b@8406 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:32 -04:00
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
Rich Prohaska
d1ecf12476 disable the mutex_init assert as we init mutexes from uninitialized memory sometimes. addresses #1328
git-svn-id: file:///svn/toku/tokudb.1032b@8403 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
3ac6ee8ce7 Closes #1338
windows pthread mutexes now require real initialization before use

git-svn-id: file:///svn/toku/tokudb.1032b@8400 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
1064ced586 Addresses #1338
src tests now call toku_ydb_init/destroy (if in windows)
Linux uses .so constructor/destructor methods

git-svn-id: file:///svn/toku/tokudb.1032b@8398 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
Yoni Fogel
c9cea2fc9b Addresses #1032
make clean does not remove tags/cscope tags

git-svn-id: file:///svn/toku/tokudb.1032b@8379 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:32 -04:00
Yoni Fogel
bee27669f7 Addresses #1321
Fixed bug from [8370], reimplemented native windows calls

git-svn-id: file:///svn/toku/tokudb.1032b@8376 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Yoni Fogel
555bf488ea Addresses #1321
Reopens ticket.
Cannot get handles (from _get_osfhandle) to work with ReadFile or WriteFile

git-svn-id: file:///svn/toku/tokudb.1032b@8373 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -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
Yoni Fogel
cff224eeb4 Addresses #1321
Fixed some compile errors.

git-svn-id: file:///svn/toku/tokudb.1032b@8370 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Yoni Fogel
9730184db9 Closes #1321
pread/pwrite now threadsafe and do not modify file pointer

git-svn-id: file:///svn/toku/tokudb.1032b@8369 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Yoni Fogel
3c097bddcf Addresses #1032
Modified makefiles to support the portability directory.

git-svn-id: file:///svn/toku/tokudb.1032b@8367 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
faa303da57 Addresses #1032
Merged changes in runbenchmarks script

git-svn-id: file:///svn/toku/tokudb.1032b@8337 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Yoni Fogel
5dfd89db1e Addresses #1032
Modified benchmark script

git-svn-id: file:///svn/toku/tokudb.1032b@8327 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Yoni Fogel
3cf3321fb0 Addresses #1032
Added some defaults to clean

git-svn-id: file:///svn/toku/tokudb.1032b@8326 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Yoni Fogel
e3aef035f6 Addresses #1322
Port makefile change to windows

git-svn-id: file:///svn/toku/tokudb.1032b@8325 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
Yoni Fogel
46e0633495 Addresses #1032b
Fixed makefile for windows

git-svn-id: file:///svn/toku/tokudb.1032b@8323 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Rich Prohaska
5aab80472e build db-benchmark-test on linux. addresses #1320
git-svn-id: file:///svn/toku/tokudb.1032b@8312 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
4b13b221d7 build the liux bdb versions of db-benchmark-test and scanscan. closes #1320
git-svn-id: file:///svn/toku/tokudb.1032b@8300 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Yoni Fogel
ca04a5aa52 Addresses #1032
Removed reference to deprecated function in lieu of toku portability layer.

git-svn-id: file:///svn/toku/tokudb.1032b@8298 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Yoni Fogel
1916540130 Addresses #1032
Replaced windows portability functions with better (native) windows calls

git-svn-id: file:///svn/toku/tokudb.1032b@8297 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Bradley C. Kuszmaul
83a90095a7 Make the cast explicit down to 32 bits. Addresses #1308.
git-svn-id: file:///svn/toku/tokudb.1032b@8295 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Yoni Fogel
d9272019d2 Addresses #1308
Fix suspiscious cast in range tree hash table

git-svn-id: file:///svn/toku/tokudb.1032b@8294 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
c3b2d9abd1 compile test_logmax.c on 32 bit linux. closes #1318
git-svn-id: file:///svn/toku/tokudb.1032b@8287 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:31 -04:00
Bradley C. Kuszmaul
867e8b970f BDB_DONTRUN tests were being compiled. Fixes #1315.
git-svn-id: file:///svn/toku/tokudb.1032b@8282 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
Rich Prohaska
c79d51312c fix icc warnings on linux. addresses #1307
git-svn-id: file:///svn/toku/tokudb.1032b@8275 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