1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-21 19:45:56 +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();
configListener();
Config::get()->addConfigListener(this);
workers.setMaxThreads(maxDownloads);
workers.setName("Downloader");
logger = SMLogging::get();
tmpPath = "downloading";

View File

@ -62,14 +62,12 @@ Synchronizer::Synchronizer() : maxUploads(0)
numBytesRead = numBytesWritten = numBytesUploaded = numBytesDownloaded = mergeDiff =
flushesTriggeredBySize = flushesTriggeredByTimer = journalsMerged =
objectsSyncedWithNoJournal = bytesReadBySync = bytesReadBySyncWithJournal = 0;
configListener();
config->addConfigListener(this);
journalPath = cache->getJournalPath();
cachePath = cache->getCachePath();
threadPool.reset(new ThreadPool());
threadPool->setMaxThreads(maxUploads);
configListener();
config->addConfigListener(this);
die = false;
journalSizeThreshold = cache->getMaxCacheSize() / 2;
blockNewJobs = false;