HBASE-13723 In table.rb scanners are never closed.

This commit is contained in:
Lars George 2015-05-28 10:11:25 +02:00
parent 81b9abab0c
commit e9afc9a267
1 changed files with 2 additions and 1 deletions

View File

@ -271,6 +271,7 @@ EOF
org.apache.hadoop.hbase.util.Bytes::toStringBinary(row.getRow))
end
scanner.close()
# Return the counter
return count
end
@ -525,8 +526,8 @@ EOF
break
end
end
scanner.close()
scanner.close()
return ((block_given?) ? count : res)
end