Commit c053df92 authored by David COME's avatar David COME
Browse files

Fixed uninitialised and vigned vs unsigned variables into DiskReadThreadPool

parent 62cfc6fe
......@@ -32,8 +32,8 @@ namespace tape {
namespace tapeserver {
namespace daemon {
DiskReadThreadPool::DiskReadThreadPool(int nbThread, int m_maxFilesReq,int m_maxBytesReq,
castor::log::LogContext lc) : m_lc(lc){
DiskReadThreadPool::DiskReadThreadPool(int nbThread, unsigned int maxFilesReq,unsigned int maxBytesReq,
castor::log::LogContext lc) : m_lc(lc),m_maxFilesReq(maxFilesReq),m_maxBytesReq(maxBytesReq){
for(int i=0; i<nbThread; i++) {
DiskReadWorkerThread * thr = new DiskReadWorkerThread(*this);
m_threads.push_back(thr);
......
......@@ -40,7 +40,7 @@ namespace daemon {
class MigrationTaskInjector;
class DiskReadThreadPool : public DiskThreadPoolInterface<DiskReadTaskInterface> {
public:
DiskReadThreadPool(int nbThread, int m_maxFilesReq,int m_maxBytesReq,
DiskReadThreadPool(int nbThread, unsigned int maxFilesReq,unsigned int maxBytesReq,
castor::log::LogContext lc);
~DiskReadThreadPool();
void startThreads();
......@@ -72,9 +72,8 @@ private:
std::vector<DiskReadWorkerThread *> m_threads;
castor::log::LogContext m_lc;
MigrationTaskInjector* m_injector;
int m_maxFilesReq;
int m_maxBytesReq;
tape::threading::Mutex m_loopBackMutex;
const unsigned int m_maxFilesReq;
const unsigned int m_maxBytesReq;
};
}}}}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment