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();
|
||||
configListener();
|
||||
Config::get()->addConfigListener(this);
|
||||
workers.setMaxThreads(maxDownloads);
|
||||
workers.setName("Downloader");
|
||||
logger = SMLogging::get();
|
||||
tmpPath = "downloading";
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user