1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-04 04:42:30 +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

@ -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);