diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-08 15:02:20 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-08 15:02:20 +0000 |
| commit | 9afc36152a1ce428243a3ace608d0508716a2efb (patch) | |
| tree | 2e144d04570a058f3e2716d7b98f16803392cdbe /src/CreateRequestCommand.cc | |
| parent | 7cd9b21937c42606354610c7ae85a0857b474cf5 (diff) | |
2010-06-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made protected member variables of Command private. Added accessor
funcs.
Diffstat (limited to 'src/CreateRequestCommand.cc')
| -rw-r--r-- | src/CreateRequestCommand.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/CreateRequestCommand.cc b/src/CreateRequestCommand.cc index 15dd3431..40a6c6f6 100644 --- a/src/CreateRequestCommand.cc +++ b/src/CreateRequestCommand.cc @@ -97,7 +97,7 @@ bool CreateRequestCommand::executeInternal() Command* command = InitiateConnectionCommandFactory::createInitiateConnectionCommand - (cuid, req, _fileEntry, _requestGroup, e); + (getCuid(), req, _fileEntry, _requestGroup, e); e->setNoWait(true); e->addCommand(command); return true; @@ -114,13 +114,14 @@ bool CreateRequestCommand::prepareForRetry(time_t wait) // CreateRequestCommand is deleted one second later: This is not // efficient. For this reason, reuse current CreateRequestCommand. if(!_requestGroup->getPieceStorage().isNull()) { - _requestGroup->getSegmentMan()->cancelSegment(cuid); + _requestGroup->getSegmentMan()->cancelSegment(getCuid()); } - if(logger->debug()) { - logger->debug("CUID#%s - Reusing CreateRequestCommand", - util::itos(cuid).c_str()); + if(getLogger()->debug()) { + getLogger()->debug("CUID#%s - Reusing CreateRequestCommand", + util::itos(getCuid()).c_str()); } - SleepCommand* scom = new SleepCommand(cuid, e, _requestGroup, this, wait); + SleepCommand* scom = new SleepCommand + (getCuid(), e, _requestGroup, this, wait); e->addCommand(scom); return false; } |
