only assume availability for cache transfers. All other transfers now use ChunkMaps

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3853 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-11-22 20:57:53 +00:00
parent 0b9a5e5b2b
commit b94e4376a4
5 changed files with 16 additions and 15 deletions

View file

@ -17,8 +17,8 @@
*
***********************************************************/
ftFileCreator::ftFileCreator(std::string path, uint64_t size, std::string hash)
: ftFileProvider(path,size,hash), chunkMap(size)
ftFileCreator::ftFileCreator(std::string path, uint64_t size, std::string hash,bool assume_availability)
: ftFileProvider(path,size,hash), chunkMap(size,assume_availability)
{
/*
* FIXME any inits to do?
@ -539,7 +539,9 @@ bool ftFileCreator::crossCheckChunkMap(const CRC32Map& ref,uint32_t& bad_chunks,
else
{
printf(" cannot fseek!\n") ;
return false ;
++bad_chunks ;
++incomplete_chunks ;
map.reset(i) ;
}
}
else