Changeset 1487
- Timestamp:
- 07/18/05 07:30:19 (3 years ago)
- Files:
-
- hydranode/src/partdata.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hydranode/src/partdata.cpp
r1468 r1487 400 400 using namespace Utils; 401 401 using boost::algorithm::replace_last; 402 402 403 403 std::string tmp(p.string()); 404 404 replace_last(tmp, ".dat.bak", ""); // in case of backups … … 477 477 PartData::PartData( 478 478 const boost::filesystem::path &path, MetaData *md 479 ) : m_chunks(new ChunkMap), m_size(md->getSize()), m_loc(path), m_toFlush(), 479 ) : m_chunks(new ChunkMap), m_size(md->getSize()), m_loc(path), m_toFlush(), 480 480 m_md(md), m_pendingHashes(), m_sourceCnt(), m_fullSourceCnt() { 481 481 getSourceCnt(); // initialize from main app … … 827 827 save(); 828 828 } 829 if (isComplete() && !m_fullJob && !m_pendingHashes) { 830 doComplete(); 831 } 829 832 } 830 833 … … 841 844 ); 842 845 } 843 846 844 847 for (BIter i = m_buffer.begin(); i != m_buffer.end(); ++i) try { 845 848 uint64_t ret = lseek64(fd, (*i).first, SEEK_SET);
