From 8773f14677f492bcde06647a111732baf226f5ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Lindstr=C3=B6m?= Date: Mon, 8 May 2017 16:14:04 +0300 Subject: [PATCH] Disable defragmentation support for now. --- storage/innobase/handler/ha_innodb.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc index f7eb4efa931..8b74875bf0e 100644 --- a/storage/innobase/handler/ha_innodb.cc +++ b/storage/innobase/handler/ha_innodb.cc @@ -15295,7 +15295,8 @@ ha_innobase::optimize( This works OK otherwise, but MySQL locks the entire table during calls to OPTIMIZE, which is undesirable. */ - if (srv_defragment) { + /* TODO: Defragment is disabled for now */ + if (0) { int err; err = defragment_table(m_prebuilt->table->name.m_name, NULL, false);