Changeset 3013
- Timestamp:
- 07/30/06 13:37:33 (2 years ago)
- Files:
-
- hydranode/hncore/partdata.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hydranode/hncore/partdata.cpp
r3009 r3013 465 465 const boost::filesystem::path &path, MetaData *md, 466 466 RangeList64 completed, RangeList64 verified 467 ) : Object(0), m_size(md->getSize()), m_loc(path), m_complete(completed), 468 m_verified(verified), m_chunks(new ChunkMap), m_toFlush(), m_md(md), 469 m_pendingHashes(), m_sourceCnt(), m_fullSourceCnt(), m_paused(), m_stopped(), 467 ) : Object(0), m_size(md->getSize()), m_loc(path), m_complete(completed), 468 m_verified(verified), m_chunks(new ChunkMap), m_toFlush(), m_md(md), 469 m_pendingHashes(), m_sourceCnt(), m_fullSourceCnt(), m_paused(), m_stopped(), 470 470 m_autoPaused() { 471 471 initSignals(); … … 769 769 boost::make_tuple(false, true) 770 770 ); 771 if (!std::distance(r.first, r.second)) { 772 return getNextChunk(size, pred); 773 } 774 771 775 uint32_t hopCnt = 0; 772 776 for (SIter i = r.first; i != r.second; ++i) { … … 1497 1501 } catch (std::exception &e) { 1498 1502 logDebug( 1499 boost::format("Deleting file %s: %s") 1503 boost::format("Deleting file %s: %s") 1500 1504 % m_loc.native_file_string() % e.what() 1501 1505 ); … … 1507 1511 } catch (std::exception &e) { 1508 1512 logDebug( 1509 boost::format("Deleting file %s: %s") 1513 boost::format("Deleting file %s: %s") 1510 1514 % tmp.native_file_string() % e.what() 1511 1515 ); … … 1517 1521 } catch (std::exception &e) { 1518 1522 logDebug( 1519 boost::format("Deleting file %s: %s") 1523 boost::format("Deleting file %s: %s") 1520 1524 % tmp.native_file_string() % e.what() 1521 1525 ); … … 1650 1654 for (size_t i = 0; i < fname.size(); ++i) { 1651 1655 if ( 1652 fname[i] == '\\' || fname[i] == '/' || 1656 fname[i] == '\\' || fname[i] == '/' || 1653 1657 fname[i] == '*' || fname[i] == ':' || 1654 1658 fname[i] == '"' || fname[i] == '?' || … … 1668 1672 } 1669 1673 logMsg( 1670 boost::format("Allocating %d disk space for download %s.") 1674 boost::format("Allocating %d disk space for download %s.") 1671 1675 % Utils::bytesToString(m_size) % getName() 1672 1676 );
