Searched refs:SHA1 (Results 1 – 1 of 1) sorted by relevance
34 def StashBlocks(self, SHA1, blocks): argument35 if SHA1 in self.stash_map:36 logging.info("already stashed {}: {}".format(SHA1, blocks))41 self.stash_map[SHA1] = blocks43 def FreeBlocks(self, SHA1): argument44 assert self.stash_map.has_key(SHA1), "stash {} not found".format(SHA1)45 self.current_stash_size -= self.stash_map[SHA1].size()46 del self.stash_map[SHA1]48 def HandleOverlapBlocks(self, SHA1, blocks): argument49 self.StashBlocks(SHA1, blocks)[all …]