Commit graph

155 commits

Author SHA1 Message Date
Bradley C. Kuszmaul
b22c98f01d close[t:4269] Merge 4269 fixes to main. {{{svn merge -r38251:38424 ../tokudb.4269}}}. Closes #4269.
git-svn-id: file:///svn/toku/tokudb@38438 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:02 -04:00
Rich Prohaska
46b2fbe221 #4131 mark fractal tree status variables so that drd will ignore them closes[t:4131]
git-svn-id: file:///svn/toku/tokudb@37113 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:57 -04:00
Barry Perlman
23698f1e96 [t:3988] #3988 Restore max mem in use statistic.
git-svn-id: file:///svn/toku/tokudb@36975 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:56 -04:00
Rich Prohaska
87b69d9faa #4112 avoid jemalloc's usable size problem with a NULL pointer refs[t:4112]
git-svn-id: file:///svn/toku/tokudb@36778 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:55 -04:00
Rich Prohaska
cd42bfa6c1 #4091 replace mutex locking in memory.c with atomic ops refs[t:4091]
git-svn-id: file:///svn/toku/tokudb@36691 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:54 -04:00
Rich Prohaska
35a46f2e5e #3853 make the lock tree memory accounting more accurate refs[t:3853]
git-svn-id: file:///svn/toku/tokudb@36278 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:53 -04:00
Rich Prohaska
faf3a5839c #3991 fix the race conditions in memory.c detected by cilkscreen refs[t:3991]
git-svn-id: file:///svn/toku/tokudb@35212 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:50 -04:00
Barry Perlman
c436cfd20f [t:3825] #3825 Add max_mem_in_use to memory statistics.
git-svn-id: file:///svn/toku/tokudb@35067 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:50 -04:00
Barry Perlman
df0b2a416f [t:3974] #3974 Remove single-threading of malloc calls from portability layer.
git-svn-id: file:///svn/toku/tokudb@35058 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:50 -04:00
Barry Perlman
03872236ad [t:3806] #3806 Single-thread all mallocator calls.
git-svn-id: file:///svn/toku/tokudb@34905 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:50 -04:00
Barry Perlman
5bc5d1cb7b [t:3937] closes #3937 Use perror() to produce errno text in error log on crash.
git-svn-id: file:///svn/toku/tokudb@34492 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:49 -04:00
Barry Perlman
4ce36c36a0 [t:3825] #3825 Fix accounting for toku_xrealloc().
git-svn-id: file:///svn/toku/tokudb@33970 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:47 -04:00
Barry Perlman
048ed4b914 [t:3825] #3825 Print memory usage (from malloc_stats()) on failed assert.
git-svn-id: file:///svn/toku/tokudb@33952 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:47 -04:00
Barry Perlman
78ee26f373 [t:3868] #3868 Replace tentative definition of function pointers in toku_assert.c with explicit mechanism: ydb layer passes in function pointers when env is created.
git-svn-id: file:///svn/toku/tokudb@33951 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:47 -04:00
Barry Perlman
44b5e6d620 [t:3825] #3825 Do not count free() operations when passed a NULL.
git-svn-id: file:///svn/toku/tokudb@33950 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:47 -04:00
Barry Perlman
cfebabfdfa [t:3825] #3825 Do not call malloc_usable_size() with NULL. Add malloc_fail and realloc_fail to engine status.
git-svn-id: file:///svn/toku/tokudb@33948 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:47 -04:00
Barry Perlman
2b54c48dcc [t:3825] #3825 Add memory usage statistics to engine status.
git-svn-id: file:///svn/toku/tokudb@33928 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:47 -04:00
Rich Prohaska
dbee5ae7ba #3346 #3351 fix the loader malloc error injector refs[t:3346] refs[t:3351]
git-svn-id: file:///svn/toku/tokudb@29297 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:38 -04:00
Bradley C. Kuszmaul
415ff301a5 [t:3314] Merge fix for #3314 to main (readlink doesn't append a NUL). Refs #3314.
{{{
svn merge -c28759 https://svn.tokutek.com/tokudb/toku/tokudb.3312
}}}
.


git-svn-id: file:///svn/toku/tokudb@28761 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:37 -04:00
Barry Perlman
5b6920d3c9 [t:3169] Set environment panic on failed assert.
git-svn-id: file:///svn/toku/tokudb@27057 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:34 -04:00
Barry Perlman
8f05263293 [t:3092] Avoid function call for common case.
git-svn-id: file:///svn/toku/tokudb@26164 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:33 -04:00
Barry Perlman
f56ef74403 [t:3092] Replace raw abort() calls with resource_assert() calls in xmalloc functions. This will provide more information in error logs on crash.
git-svn-id: file:///svn/toku/tokudb@26163 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:33 -04:00
Barry Perlman
b05d16ce44 [t:3028] Merge from tokudb.3028 with command svn merge -r25427:HEAD ../tokudb.3028 .
Add engine status on failed assert.  Also add panic info to log status in preparation for making available via engine status.

git-svn-id: file:///svn/toku/tokudb@25469 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:26 -04:00
Rich Prohaska
24d915f259 #2966 use assert_zero in some of the newbrt files refs[t:2966]
git-svn-id: file:///svn/toku/tokudb@24717 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:23 -04:00
Barry Perlman
db868fb31d [t:2947] Merge from tokudb.2947. Added errno to error log, don't take minicron lock for engine status. I want to print engine status to error log, but the env isn't available everywhere, so that's not here (yet).
git-svn-id: file:///svn/toku/tokudb@24075 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:23 -04:00
Rich Prohaska
8cf78727aa #2921 refs[t:2921] remove obsolete memory functions
git-svn-id: file:///svn/toku/tokudb@23625 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:22 -04:00
Zardosht Kasheff
cc91ea8ca4 [t:2811], merge to main \!\!\!
git-svn-id: file:///svn/toku/tokudb@23495 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:22 -04:00
Bradley C. Kuszmaul
06d1c0e1eb Get rid of {{{TAGMALLOC}}}. Fixes #2912. close[t:2912]
git-svn-id: file:///svn/toku/tokudb@23493 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:22 -04:00
Bradley C. Kuszmaul
754576bbc7 Merge changes from tokudb.2826. Fixes #2826. close[t:2826]
git-svn-id: file:///svn/toku/tokudb@22664 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:20 -04:00
Yoni Fogel
bfa8303199 closes[t:2704] fix cronjob for windows nightly tests
git-svn-id: file:///svn/toku/tokudb@20903 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:18 -04:00
Yoni Fogel
6b16623e8a Fix windows compile.
Poison __sync_fetch_and_add and __sync_add_and_fetch, wrote toku wrappers and windows equivalents
fix bug in toku_sync_fetch_and_(in|de)crement_int32 where it returned result instead of original

git-svn-id: file:///svn/toku/tokudb@20848 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:17 -04:00
Yoni Fogel
c9b2b066dd [t:2561] Merge tokudb.2561b to main. Disabled auto-upgrade and auto-upgrade tests
git-svn-id: file:///svn/toku/tokudb@20778 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:17 -04:00
Rich Prohaska
16cbf13ca2 closes[t:2445] fsync dirs after file creation
git-svn-id: file:///svn/toku/tokudb@20735 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:16 -04:00
Yoni Fogel
f1a67d8133 [t:2631] [t:2623] Fix windows build broken by r20413.
Implement "strerror_r" in windows

git-svn-id: file:///svn/toku/tokudb@20565 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:15 -04:00
Bradley C. Kuszmaul
c4405b714c Make the ...dbufio tests better. Refs #2633. [t:2633]
git-svn-id: file:///svn/toku/tokudb@20534 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:15 -04:00
Yoni Fogel
4d0f2e5773 [t:2624] fix windows compile of r20449 (off_t->toku_off_t)
git-svn-id: file:///svn/toku/tokudb@20522 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:15 -04:00
Barry Perlman
bc8ec47a33 [t:2621] [t:2624] Port file system wrappers to Windows.
git-svn-id: file:///svn/toku/tokudb@20449 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:14 -04:00
Yoni Fogel
5539b538a9 Fix windows build
git-svn-id: file:///svn/toku/tokudb@20399 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:13 -04:00
Rich Prohaska
1abb93de95 test large malloc failures in the brtloader writer. merge from tokudb.2603.extractor.tests. refs[t:2603]
git-svn-id: file:///svn/toku/tokudb@20276 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:12 -04:00
Rich Prohaska
9c891e5501 fix some error paths in the brtloader extractor.
fix an uninitialized var problem in the ydbloader.
refs[t:2597] refs[t:2598]
merge -r 20145:20165 tokudb.2597 to tokudb



git-svn-id: file:///svn/toku/tokudb@20166 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:11 -04:00
Rich Prohaska
52b5bafc07 merge 2578b to main refs[t:2578]
git-svn-id: file:///svn/toku/tokudb@20143 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:11 -04:00
Yoni Fogel
bccc6f9550 windows port (add extra prototypes, fix type of setstacksize)
git-svn-id: file:///svn/toku/tokudb@19947 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:10 -04:00
Yoni Fogel
03c66d5222 [t:2499] Fix broken windows build due to r19902 (merge of 2499d branch)
git-svn-id: file:///svn/toku/tokudb@19935 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:09 -04:00
Bradley C. Kuszmaul
28cc5d1ed9 Merge the changes from 2499d onto the main line. Fixes #2499. close[t:2499].
{{{
svn merge -r 19523:19895 https://svn.tokutek.com/tokudb/toku/tokudb.2499d
}}}
.


git-svn-id: file:///svn/toku/tokudb@19902 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:09 -04:00
Yoni Fogel
a03e6093e4 [t:2493] Port filesystem redzone to windows
git-svn-id: file:///svn/toku/tokudb@19294 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:06 -04:00
Yoni Fogel
7b2cc84ac9 closes[t:2515] Accurately distinguish between 32bit and 64bit windows
git-svn-id: file:///svn/toku/tokudb@19288 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:06 -04:00
Yoni Fogel
1bf7a7a403 closes[t:2449] [t:2484] Merge #2449 changes to main.
Rollback logs are now checkpointed.  There are no rolltmp files.


git-svn-id: file:///svn/toku/tokudb@19167 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:05 -04:00
Zardosht Kasheff
e5eb0849fe Made script more robust.
git-svn-id: file:///svn/toku/tokudb@18938 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:05 -04:00
Rich Prohaska
ab4cc9cee4 implement a dummy get_filesystem_sizes for windows refs[t:2493] #2493
git-svn-id: file:///svn/toku/tokudb@18893 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:04 -04:00
Rich Prohaska
eee6602cfa port fsync accounting to windows refs[t:2492] #2492
git-svn-id: file:///svn/toku/tokudb@18892 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:04 -04:00