Rich Prohaska
a9d325a6d0
#3200 get the handlerton compiling again refs[t:3200]
...
git-svn-id: file:///svn/toku/tokudb@27486 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:35 -04:00
Bradley C. Kuszmaul
fcd3e15270
Fixes #3200 . Use rdtsc instead of gettimeofday() to instrument elocks. close[t:3200]
...
git-svn-id: file:///svn/toku/tokudb@27464 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:35 -04:00
Bradley C. Kuszmaul
abd5212bcf
Merge r26784 into the main line.
...
Changes include patches to
* Handle gcc 4.4.1's foibles.
* Instrument {{{toku_os_pread}}}
* Release the lock during I/Os for queries (#3039 )
* Simplification of the ydb lock (no more backoff)
* Use {{{DB_TXN_NOSYNC}} for several tests (which speeds them up).
* Set the redzone to zero for several tests (so they can run on machines with little free space). (#3111 )
* Add helgrind and valgrind suppressions to some tests.
* Add dollar-id-dollar to several files.
* Declare the schedule status values to be volatile.
* Add a method to the toku {{{RWLOCK}}} to effectively grab the read lock and then release it quickly. (With only one condition variable acquisition.)
Fixes #3039 . close[t:3039]
Refs #3111 , #3112 , #3119 , #3125 , #3126 , #3128 , #3131 , #3133 , #3142 , #3152 .
[t:3111] [t:3112] [t:3119] [t:3125] [t:3126] [t:3128] [t:3131] [t:3133] [t:3142] [t:3152].
git-svn-id: file:///svn/toku/tokudb@26785 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:34 -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
Rich Prohaska
d9985ad0cf
#2840 refs[t:2840] add debug prints to the loader to help fix the dbufio read row problem, also remove the assert on this error path
...
git-svn-id: file:///svn/toku/tokudb@22673 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:20 -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
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
Barry Perlman
2108cc42c6
Closes [t:2624] Added toku_os_close() which retries on EINTR. Closes [t:2621] Added toku_os_open(), toku_os_fopen(), toku_os_fdopen(), toku_os_fclose() and related override hooks db_env_set_func_open(), db_env_set_func_fopen(), db_env_set_func_fdopen(), db_env_set_func_fclose(). Modified test program loader-cleanup-test to use new hooks to inject synthetic errors. Marked some error cases in brtloader.c. with ###.
...
git-svn-id: file:///svn/toku/tokudb@20364 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:13 -04:00
Barry Perlman
6603cf2166
[t:2499] Fix toku_os_pwrite() signature (returns ssize_t, not int).Add pwrite testing to loader-cleanup-test.
...
git-svn-id: file:///svn/toku/tokudb@20292 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:12 -04:00
Barry Perlman
061de97e14
Closes [t:2612] Make separate override functions for use by toku_os_write(), toku_os_full_write(), toku_os_pwrite(), and toku_os_full_pwrite(). Modify src/tests/diskfull.c to use new override functions.
...
git-svn-id: file:///svn/toku/tokudb@20220 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
fca28d4e24
[t:2499] Windows port of casting to typeof().
...
Implement workaround. Currently windows allows implicit casts from void* to whatever*.
May need to be revisited once windows cilk is included.
git-svn-id: file:///svn/toku/tokudb@19937 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
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
Rich Prohaska
5500a39946
merge 3.0.5 -c 18481 to main refs[t:2467]
...
git-svn-id: file:///svn/toku/tokudb@18871 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:04 -04:00
Bradley C. Kuszmaul
296fca6bed
Contrary to r18222, the new group commit code was not on the main truck.
...
{{{
svn merge -r17893:18056 https://svn.tokutek.com/tokudb/toku/tokudb.2370c
}}}
Refs #2370 , #2385 . [t:2370] [t:2385].
git-svn-id: file:///svn/toku/tokudb@18259 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:02 -04:00
Bradley C. Kuszmaul
178820a688
Merge changes from 2216a to main (except possibly for the windows subdirectory, which Yoni will do separately).
...
2216a is no longer valid.
Refs #2216 . [t:2216].
{{{
svn merge -r17301:18179 https://svn.tokutek.com/tokudb/toku/tokudb.2216a/src/tests
}}}
git-svn-id: file:///svn/toku/tokudb@18181 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:01 -04:00
Bradley C. Kuszmaul
56d2c6fdf8
Merge 2216 onto main (from 16706-17293) as
...
{{{
svn merge -r16706:17293 https://svn.tokutek.com/tokudb/toku/tokudb.2216
}}}
Refs #2216 . [t:2216]
git-svn-id: file:///svn/toku/tokudb@17299 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:59 -04:00
Rich Prohaska
2cdf2fc582
add tracing for getting a handle on node serialization costs refs[t:2261]
...
git-svn-id: file:///svn/toku/tokudb@17123 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:58 -04:00
Yoni Fogel
e944ee50a6
[t:2312] All paths to write/pwrite go through portability layer.
...
full_os_(p)write check for partial reads, and fixable errors.
git-svn-id: file:///svn/toku/tokudb@17078 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:58 -04:00
Yoni Fogel
a0d3657e23
closes[t:2309] [t:2308] Deprecate dup2, _dup2 (wrap with toku_dup2), and replace /dev/null with DEV_NULL_FILE
...
Fixes some recovery tests in windows
git-svn-id: file:///svn/toku/tokudb@17020 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:58 -04:00
Bradley C. Kuszmaul
a3a8d8cce6
Merge from 2212 branch. Fixes #2212 . Fixes[t:2212].
...
git-svn-id: file:///svn/toku/tokudb@16106 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:55 -04:00
Rich Prohaska
7ac59d04df
add fsync time to the fair scheduler closes[t:2170]
...
git-svn-id: file:///svn/toku/tokudb@15815 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:52 -04:00
Rich Prohaska
e8a671d611
imp toku_file_fsync in the port layer closes[t:1748]
...
git-svn-id: file:///svn/toku/tokudb@15805 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:52 -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
1ea7ce00b4
abstract stdint.h for solaris. addresses #1789
...
git-svn-id: file:///svn/toku/tokudb@12569 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:54 -04:00
Rich Prohaska
aab009a25a
build on freebsd with gcc 4.3.4. addresses #1789
...
git-svn-id: file:///svn/toku/tokudb@12483 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:53 -04:00
Rich Prohaska
3ea335abdb
freebsd port. addresses #1789
...
git-svn-id: file:///svn/toku/tokudb@12444 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:53 -04:00
Yoni Fogel
bc9fd74c80
Merge 2.0.0 back into main
...
svn merge --accept=postpone -r 12123:12373 ../../mysql.branches/2.0.0/tokudb/
git-svn-id: file:///svn/toku/tokudb@12375 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:53 -04:00
Yoni Fogel
91fd49318c
Windows ports Addresses #1665
...
git-svn-id: file:///svn/toku/tokudb@11337 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:50 -04:00
Yoni Fogel
74efd7aa38
Addresses #1665 Windows port of minicron
...
git-svn-id: file:///svn/toku/tokudb@11334 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:49 -04:00
Yoni Fogel
4860352fb8
Addresses #1611 toku_htod32 and toku_dtoh32 replace htonl and ntohl (for internal use).
...
d stands for disk-byte-order (as opposed to n for network-byte-order)
Disk-byte-order set as Intel byte order for now
git-svn-id: file:///svn/toku/tokudb@10694 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:46 -04:00
Yoni Fogel
3cec87fc6a
Addresses #1531 linux port (fix compile) of [10491]
...
git-svn-id: file:///svn/toku/tokudb@10492 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
c191b67324
Addresses #1531 Ported stat/fstat. toku_stat, toku_fstat (struct is toku_struct_stat), poisoned the use of the functions
...
git-svn-id: file:///svn/toku/tokudb@10491 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
315770b1ac
Addresses #1519 Linux port of 'poison off_t' in windows
...
git-svn-id: file:///svn/toku/tokudb@9784 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:43 -04:00
Yoni Fogel
e50cfa1034
Addresses #1519 poison off_t in windows
...
git-svn-id: file:///svn/toku/tokudb@9783 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:42 -04:00
Rich Prohaska
16e4da265f
fix the tokudb build. closes #1491
...
git-svn-id: file:///svn/toku/tokudb@9554 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:41 -04:00
Yoni Fogel
e4dc9128bd
Addresses #1324
...
Port test to windows
git-svn-id: file:///svn/toku/tokudb@9237 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:40 -04:00
Bradley C. Kuszmaul
85f355d631
Improve error messages and error handling when writes fail.
...
* Fixes #78 ({{{lg_bsize}}} works)
* Fixes #1323 (write errors)
Did
{{{
svn merge -r8967:9031 https://svn.tokutek.com/tokudb/toku/tokudb.1323a
}}}
(And I'll delete the 1323 branches in a moment.)
git-svn-id: file:///svn/toku/tokudb@9032 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:38 -04:00
Yoni Fogel
5bd0a17aa9
Addresses #1032 , #1343
...
Fix up (some of the) windows compilation issues during merge of 1032b to main
git-svn-id: file:///svn/toku/tokudb@8688 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:37 -04:00
Bradley C. Kuszmaul
2f856f7d29
Candidate fix for #1374 (wrong db.h include file for BDB versions of code.) Addresses #1374 .
...
git-svn-id: file:///svn/toku/tokudb@8667 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:37 -04:00