summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2022-06-30 13:46:43 +0300
committerSergei Petrunia <sergey@mariadb.com>2023-02-02 23:03:27 +0300
commitca2851d17e76a5bb2d2fb46f674af352c1b22efb (patch)
treec1ae30fdb272a8dce2900a648e9e3eea4322cde6 /sql/sql_update.cc
parentfa90ac618041aae715667bfcb49487ca472a86c3 (diff)
downloadmariadb-git-ca2851d17e76a5bb2d2fb46f674af352c1b22efb.tar.gz
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
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 2da95904419..45a7da787ad 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -840,8 +840,8 @@ int mysql_update(THD *thd,
explain->buf_tracker.on_scan_init();
IO_CACHE tempfile;
if (open_cached_file(&tempfile, mysql_tmpdir,TEMP_PREFIX,
- DISK_BUFFER_SIZE, MYF(MY_WME)))
- goto err;
+ DISK_CHUNK_SIZE, MYF(MY_WME)))
+ goto err;
/* If quick select is used, initialize it before retrieving rows. */
if (select && select->quick && select->quick->reset())