From 2c2e1bb8f10fdcc04f31a7a30d7762c499359af3 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 c27035bbb3..f098e2fa35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,13 +6,14 @@ 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 - \#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