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:
parent
753a77b38c
commit
c97e58c9b5
@ -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";
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user