2010-08-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Pass excludedIndexes when getting metadata piece.
	* src/UTMetadataRequestFactory.cc
	* test/UTMetadataRequestFactoryTest.cc
This commit is contained in:
Tatsuhiro Tsujikawa 2010-08-29 09:22:06 +00:00
parent e997903e5d
commit 4b2d1deff6
3 changed files with 11 additions and 2 deletions

View file

@ -29,7 +29,8 @@ public:
std::deque<size_t> missingIndexes;
virtual SharedHandle<Piece> getMissingPiece
(const SharedHandle<Peer>& peer)
(const SharedHandle<Peer>& peer,
const std::vector<size_t>& exlucdedIndexes)
{
if(missingIndexes.empty()) {
return SharedHandle<Piece>();