mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
cleanup: Make tempfile creation uniform with DISK_CHUNK_SIZE
Replace READ_RECORD_SIZE and DISK_BUFFER_SIZE (renamed to DISK_CHUNK_SIZE) to be used across all open_cached_file calls. Reviewer: Monty
This commit is contained in:
committed by
Sergei Petrunia
parent
fa90ac6180
commit
ca2851d17e
@@ -119,14 +119,13 @@
|
||||
#define CREATE_MODE 0 /* Default mode on new files */
|
||||
#define NAMES_SEP_CHAR 255 /* Char to sep. names */
|
||||
|
||||
#define READ_RECORD_BUFFER (uint) (IO_SIZE*8) /* Pointer_buffer_size */
|
||||
#define DISK_BUFFER_SIZE (uint) (IO_SIZE*16) /* Size of diskbuffer */
|
||||
|
||||
/*
|
||||
When reading big blocks, assume that each block of this size is
|
||||
is of simlar cost as key lookup (1)
|
||||
This is used when reading large blocks, sequential read.
|
||||
We assume that reading this much will be the same cost as 1 seek / fetching
|
||||
one row from the storage engine.
|
||||
*/
|
||||
#define DISK_FAST_READ_SIZE ((uint) (IO_SIZE*16))
|
||||
#define DISK_CHUNK_SIZE (uint) (65536) /* Size of diskbuffer for tmpfiles */
|
||||
#define TMPFILE_CREATE_COST 2.0 /* Creating and deleting tmp file */
|
||||
|
||||
#define FRM_VER_TRUE_VARCHAR (FRM_VER+4) /* 10 */
|
||||
#define FRM_VER_EXPRESSSIONS (FRM_VER+5) /* 11 */
|
||||
|
Reference in New Issue
Block a user