Skip to content

Commit

Permalink
Remove improper iterator copy in digest calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
whangsf committed Dec 11, 2017
1 parent 8547f74 commit d6ec955
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -240,14 +240,11 @@ public void close()
*/
public static void digest(UnfilteredPartitionIterator iterator, Hasher hasher, int version)
{
try (UnfilteredPartitionIterator iter = iterator)
while (iterator.hasNext())
{
while (iter.hasNext())
try (UnfilteredRowIterator partition = iterator.next())
{
try (UnfilteredRowIterator partition = iter.next())
{
UnfilteredRowIterators.digest(partition, hasher, version);
}
UnfilteredRowIterators.digest(partition, hasher, version);
}
}
}
Expand Down

0 comments on commit d6ec955

Please sign in to comment.