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

MCOL-3357: reorder this since maxThreads is set by configListener now.

This commit is contained in:
benthompson15 2019-10-08 14:32:52 -05:00
parent 753a77b38c
commit c97e58c9b5
2 changed files with 2 additions and 5 deletions

View File

@ -33,7 +33,6 @@ Downloader::Downloader() : maxDownloads(0)
storage = CloudStorage::get(); storage = CloudStorage::get();
configListener(); configListener();
Config::get()->addConfigListener(this); Config::get()->addConfigListener(this);
workers.setMaxThreads(maxDownloads);
workers.setName("Downloader"); workers.setName("Downloader");
logger = SMLogging::get(); logger = SMLogging::get();
tmpPath = "downloading"; tmpPath = "downloading";

View File

@ -63,13 +63,11 @@ Synchronizer::Synchronizer() : maxUploads(0)
flushesTriggeredBySize = flushesTriggeredByTimer = journalsMerged = flushesTriggeredBySize = flushesTriggeredByTimer = journalsMerged =
objectsSyncedWithNoJournal = bytesReadBySync = bytesReadBySyncWithJournal = 0; objectsSyncedWithNoJournal = bytesReadBySync = bytesReadBySyncWithJournal = 0;
configListener();
config->addConfigListener(this);
journalPath = cache->getJournalPath(); journalPath = cache->getJournalPath();
cachePath = cache->getCachePath(); cachePath = cache->getCachePath();
threadPool.reset(new ThreadPool()); threadPool.reset(new ThreadPool());
threadPool->setMaxThreads(maxUploads); configListener();
config->addConfigListener(this);
die = false; die = false;
journalSizeThreshold = cache->getMaxCacheSize() / 2; journalSizeThreshold = cache->getMaxCacheSize() / 2;
blockNewJobs = false; blockNewJobs = false;