summaryrefslogtreecommitdiff
path: root/storage/innobase/handler
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-04-26 23:20:32 +0200
committerSergei Golubchik <serg@mariadb.org>2016-04-26 23:20:32 +0200
commitc4dcfb60e807ba8718da971e8bde15511be57ce8 (patch)
tree40b5623fe080ba93ad96b407a00c7166f41a0834 /storage/innobase/handler
parent872649c7baab3a9f7efdda78e49c4bc7dd481d91 (diff)
parentf1aae861eee711cc718ca8fe52cc08d326b948cf (diff)
downloadmariadb-git-c4dcfb60e807ba8718da971e8bde15511be57ce8.tar.gz
Merge branch 'merge-innodb-5.6' into 10.0
5.6.30
Diffstat (limited to 'storage/innobase/handler')
-rw-r--r--storage/innobase/handler/ha_innodb.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 42cbc1d7076..0c3a04fe753 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -1,6 +1,6 @@
/*****************************************************************************
-Copyright (c) 2000, 2015, Oracle and/or its affiliates. All Rights Reserved.
+Copyright (c) 2000, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, 2009 Google Inc.
Copyright (c) 2009, Percona Inc.
Copyright (c) 2012, Facebook Inc.
@@ -3497,6 +3497,16 @@ innobase_change_buffering_inited_ok:
innobase_open_files = tc_size;
}
}
+
+ if (innobase_open_files > (long) open_files_limit) {
+ fprintf(stderr,
+ "innodb_open_files should not be greater"
+ " than the open_files_limit.\n");
+ if (innobase_open_files > (long) tc_size) {
+ innobase_open_files = tc_size;
+ }
+ }
+
srv_max_n_open_files = (ulint) innobase_open_files;
srv_innodb_status = (ibool) innobase_create_status_file;
@@ -11866,7 +11876,7 @@ ha_innobase::optimize(
if (innodb_optimize_fulltext_only) {
if (prebuilt->table->fts && prebuilt->table->fts->cache
&& !dict_table_is_discarded(prebuilt->table)) {
- fts_sync_table(prebuilt->table);
+ fts_sync_table(prebuilt->table, false, true);
fts_optimize_table(prebuilt->table);
}
return(HA_ADMIN_OK);