Fixed some claims not being completely deleted.

This commit is contained in:
ryanhamshire 2016-03-15 16:17:51 -07:00
parent 1b89229080
commit 133582b9b6

View File

@ -582,6 +582,8 @@ public abstract class DataStore
for(Long chunkHash : chunkHashes) for(Long chunkHash : chunkHashes)
{ {
ArrayList<Claim> claimsInChunk = this.chunksToClaimsMap.get(chunkHash); ArrayList<Claim> claimsInChunk = this.chunksToClaimsMap.get(chunkHash);
if(claimsInChunk != null)
{
for(int j = 0; j < claimsInChunk.size(); j++) for(int j = 0; j < claimsInChunk.size(); j++)
{ {
if(claimsInChunk.get(j).id.equals(claim.id)) if(claimsInChunk.get(j).id.equals(claim.id))
@ -590,6 +592,7 @@ public abstract class DataStore
break; break;
} }
} }
}
} }
//remove from secondary storage //remove from secondary storage