From 078100926f6f120c5f89247e890bbc5ce89a9db2 Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Fri, 22 May 2020 14:35:11 +0800 Subject: [PATCH] #2403 MySQL max_idle_time is 10 by default (#2405) * #2403 MySQL max_idle_time is 10 by default Signed-off-by: jinhai * #2403 MySQL max_idle_time is 10 by default Signed-off-by: jinhai --- CHANGELOG.md | 3 ++- core/src/db/meta/MySQLConnectionPool.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1245154ba2..ee7aa1c3e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,14 +18,15 @@ Please mark all change in change log and use the issue from GitHub ## Bug - \#2378 Duplicate data after server restart - \#2399 The nlist set by the user may not take effect +- \#2403 MySQL max_idle_time is 10 by default ## Feature - \#2363 Update branch version -- \#2381 Upgrade to faiss_1.6.3 ## Improvement - \#2307 Disable index SPTAG by default - \#2370 Clean compile warning +- \#2381 Upgrade FAISS to 1.6.3 ## Task diff --git a/core/src/db/meta/MySQLConnectionPool.h b/core/src/db/meta/MySQLConnectionPool.h index bab0ddabcd..523ffe00eb 100644 --- a/core/src/db/meta/MySQLConnectionPool.h +++ b/core/src/db/meta/MySQLConnectionPool.h @@ -73,7 +73,7 @@ class MySQLConnectionPool : public mysqlpp::ConnectionPool { int max_pool_size_; - unsigned int max_idle_time_ = 0; // 10 seconds + unsigned int max_idle_time_ = 10; // 10 seconds }; } // namespace meta