1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-3983: always set threadpool max threads in storagemanager (#2269)

This commit is contained in:
benthompson15
2022-02-23 12:21:43 -06:00
committed by GitHub
parent 0c978e252d
commit dc4f6865d1
3 changed files with 8 additions and 6 deletions

View File

@ -214,7 +214,11 @@ void Downloader::configListener()
// Downloader threads
string stmp = Config::get()->getValue("ObjectStorage", "max_concurrent_downloads");
if (maxDownloads == 0)
{
maxDownloads = 20;
workers.setMaxThreads(maxDownloads);
logger->log(LOG_INFO, "max_concurrent_downloads = %u",maxDownloads);
}
if (stmp.empty())
{
logger->log(LOG_CRIT, "max_concurrent_downloads is not set. Using current value = %u", maxDownloads);

View File

@ -884,7 +884,11 @@ void Synchronizer::configListener()
// Uploader threads
string stmp = Config::get()->getValue("ObjectStorage", "max_concurrent_uploads");
if (maxUploads == 0)
{
maxUploads = 20;
threadPool->setMaxThreads(maxUploads);
logger->log(LOG_INFO, "max_concurrent_uploads = %u",maxUploads);
}
if (stmp.empty())
{
logger->log(LOG_CRIT, "max_concurrent_uploads is not set. Using current value = %u", maxUploads);