diff options
author | unknown <tonu@volk.internalnet> | 2001-12-10 10:57:14 +0200 |
---|---|---|
committer | unknown <tonu@volk.internalnet> | 2001-12-10 10:57:14 +0200 |
commit | 64e93dd50361e8536ccef27ccfe6833451d77ac5 (patch) | |
tree | a9278b09fb7de2899329d70adc7c4ab8baf1eac7 | |
parent | f939a6b635846216778bb4abd96ba6fef229908e (diff) | |
download | mariadb-git-64e93dd50361e8536ccef27ccfe6833451d77ac5.tar.gz |
Misc fixes
BUILD/compile-pentium-debug-openssl:
Make it compile faster
mysys/raid.cc:
Fix comment style to conform our coding standard
-rwxr-xr-x | BUILD/compile-pentium-debug-openssl | 2 | ||||
-rw-r--r-- | mysys/raid.cc | 110 |
2 files changed, 56 insertions, 56 deletions
diff --git a/BUILD/compile-pentium-debug-openssl b/BUILD/compile-pentium-debug-openssl index aa120e3175a..5de1c18a5d7 100755 --- a/BUILD/compile-pentium-debug-openssl +++ b/BUILD/compile-pentium-debug-openssl @@ -8,6 +8,6 @@ c_warnings="$c_warnings $debug_extra_warnings" cxx_warnings="$cxx_warnings $debug_extra_warnings" extra_configs="$pentium_configs $debug_configs" -extra_configs="$extra_configs --with-debug=full --with-vio --with-openssl" +extra_configs="$extra_configs --with-debug=full --with-vio --with-openssl --without-innodb" . "$path/FINISH.sh" diff --git a/mysys/raid.cc b/mysys/raid.cc index 4d7b6d62325..d48bf9db953 100644 --- a/mysys/raid.cc +++ b/mysys/raid.cc @@ -14,61 +14,61 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* --------------------------------------------------------* -* -* RAID support for MySQL. Raid 0 (stiping) only implemented yet. -* -* Why RAID? Why it must be in MySQL? -* -* This is because then you can: -* 1. Have bigger tables than your OS limit. In time of writing this -* we are hitting to 2GB limit under linux/ext2 -* 2. You can get more speed from IO bottleneck by putting -* Raid dirs on different physical disks. -* 3. Getting more fault tolerance (not implemented yet) -* -* Why not to use RAID: -* -* 1. You are losing some processor power to calculate things, -* do more syscalls and interrupts. -* -* Functionality is supplied by two classes: RaidFd and RaidName. -* RaidFd supports funtionality over file descriptors like -* open/create/write/seek/close. RaidName supports functionality -* like rename/delete where we have no relations to filedescriptors. -* RaidName can be prorably unchanged for different Raid levels. RaidFd -* have to be virtual I think ;). -* You can speed up some calls in MySQL code by skipping RAID code. -* For example LOAD DATA INFILE never needs to read RAID-ed files. -* This can be done adding proper "#undef my_read" or similar undef-s -* in your code. Check out the raid.h! -* -* Some explanation about _seek_vector[] -* This is seek cache. RAID seeks too much and we cacheing this. We -* fool it and just storing new position in file to _seek_vector. -* When there is no seeks to do, we are putting RAID_SEEK_DONE into it. -* Any other value requires seeking to that position. -* -* TODO: -* -* -* - Implement other fancy things like RAID 1 (mirroring) and RAID 5. -* Should not to be very complex. -* -* - Optimize big blob writes by resorting write buffers and writing -* big chunks at once instead of doing many syscalls. - after thinking I -* found this is useless. This is because same thing one can do with just -* increasing RAID_CHUNKSIZE. Monty, what do you think? tonu. -* -* - If needed, then implement missing syscalls. One known to miss is stat(); -* -* - Make and use a thread safe dynamic_array buffer. The used one -* will not work if needs to be extended at the same time someone is -* accessing it. -* -* -* tonu@mysql.com & monty@mysql.com -* --------------------------------------------------------*/ +/* + + RAID support for MySQL. Raid 0 (stiping) only implemented yet. + + Why RAID? Why it must be in MySQL? + + This is because then you can: + 1. Have bigger tables than your OS limit. In time of writing this + we are hitting to 2GB limit under linux/ext2 + 2. You can get more speed from IO bottleneck by putting + Raid dirs on different physical disks. + 3. Getting more fault tolerance (not implemented yet) + + Why not to use RAID: + + 1. You are losing some processor power to calculate things, + do more syscalls and interrupts. + + Functionality is supplied by two classes: RaidFd and RaidName. + RaidFd supports funtionality over file descriptors like + open/create/write/seek/close. RaidName supports functionality + like rename/delete where we have no relations to filedescriptors. + RaidName can be prorably unchanged for different Raid levels. RaidFd + have to be virtual I think ;). + You can speed up some calls in MySQL code by skipping RAID code. + For example LOAD DATA INFILE never needs to read RAID-ed files. + This can be done adding proper "#undef my_read" or similar undef-s + in your code. Check out the raid.h! + + Some explanation about _seek_vector[] + This is seek cache. RAID seeks too much and we cacheing this. We + fool it and just storing new position in file to _seek_vector. + When there is no seeks to do, we are putting RAID_SEEK_DONE into it. + Any other value requires seeking to that position. + + TODO: + + + - Implement other fancy things like RAID 1 (mirroring) and RAID 5. + Should not to be very complex. + + - Optimize big blob writes by resorting write buffers and writing + big chunks at once instead of doing many syscalls. - after thinking I + found this is useless. This is because same thing one can do with just + increasing RAID_CHUNKSIZE. Monty, what do you think? tonu. + + - If needed, then implement missing syscalls. One known to miss is stat(); + + - Make and use a thread safe dynamic_array buffer. The used one + will not work if needs to be extended at the same time someone is + accessing it. + + + tonu@mysql.com & monty@mysql.com +*/ #ifdef __GNUC__ #pragma implementation // gcc: Class implementation |