mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
code cleaning. Removed debug info
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3675 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c8f6770b7d
commit
630e7dfe6b
@ -63,7 +63,6 @@
|
||||
* #define CONTROL_DEBUG 1
|
||||
* #define DEBUG_DWLQUEUE 1
|
||||
*****/
|
||||
#define CONTROL_DEBUG 1
|
||||
|
||||
static const uint32_t SAVE_TRANSFERS_DELAY = 61 ; // save transfer progress every 61 seconds.
|
||||
static const uint32_t INACTIVE_CHUNKS_CHECK_DELAY = 60 ; // time after which an inactive chunk is released
|
||||
@ -167,8 +166,6 @@ void ftController::addFileSource(const std::string& hash,const std::string& peer
|
||||
{
|
||||
it->second->mTransfer->addFileSource(peer_id);
|
||||
|
||||
// setPeerState(it->second.mTransfer, peer_id, rate, mConnMgr->isOnline(peer_id));
|
||||
|
||||
#ifdef CONTROL_DEBUG
|
||||
std::cerr << "... added." << std::endl ;
|
||||
#endif
|
||||
@ -194,8 +191,6 @@ void ftController::removeFileSource(const std::string& hash,const std::string& p
|
||||
it->second->mTransfer->removeFileSource(peer_id);
|
||||
it->second->mCreator->removeFileSource(peer_id);
|
||||
|
||||
// setPeerState(it->second.mTransfer, peer_id, rate, mConnMgr->isOnline(peer_id));
|
||||
|
||||
#ifdef CONTROL_DEBUG
|
||||
std::cerr << "... added." << std::endl ;
|
||||
#endif
|
||||
@ -1386,10 +1381,10 @@ bool ftController::FileCancel(const std::string& hash)
|
||||
|
||||
bool ftController::FileControl(const std::string& hash, uint32_t flags)
|
||||
{
|
||||
//#ifdef CONTROL_DEBUG
|
||||
#ifdef CONTROL_DEBUG
|
||||
std::cerr << "ftController::FileControl(" << hash << ",";
|
||||
std::cerr << flags << ")"<<std::endl;
|
||||
//#endif
|
||||
#endif
|
||||
RsStackMutex stack(ctrlMutex); /******* LOCKED ********/
|
||||
|
||||
/*check if the file in the download map*/
|
||||
@ -1416,7 +1411,6 @@ bool ftController::FileControl(const std::string& hash, uint32_t flags)
|
||||
break;
|
||||
|
||||
case RS_FILE_CTRL_FORCE_CHECK:
|
||||
// mit->second->mState = ftFileControl::CHECKING_HASH ;
|
||||
mit->second->mTransfer->forceCheck();
|
||||
std::cerr << "setting state to " << ftFileControl::CHECKING_HASH << std::endl ;
|
||||
break;
|
||||
|
@ -239,23 +239,15 @@ class ftController: public CacheTransfer, public RsThread, public pqiMonitor, pu
|
||||
|
||||
RsMutex ctrlMutex;
|
||||
|
||||
// std::list<FileInfo> incomingQueue;
|
||||
|
||||
std::map<std::string, ftFileControl*> mCompleted;
|
||||
std::map<std::string, ftFileControl*> mDownloads;
|
||||
std::vector<ftFileControl*> _queue ;
|
||||
|
||||
//std::map<std::string, ftTransferModule *> mTransfers;
|
||||
//std::map<std::string, ftFileCreator *> mFileCreators;
|
||||
|
||||
std::string mConfigPath;
|
||||
std::string mDownloadPath;
|
||||
std::string mPartialsPath;
|
||||
|
||||
/**** SPEED QUEUES ****/
|
||||
// std::list<std::string> mSlowQueue;
|
||||
// std::list<std::string> mStreamQueue;
|
||||
// std::list<std::string> mFastQueue;
|
||||
|
||||
/* callback list (for File Completion) */
|
||||
RsMutex doneMutex;
|
||||
|
Loading…
Reference in New Issue
Block a user