HBASE-13723 In table.rb scanners are never closed.
This commit is contained in:
parent
81b9abab0c
commit
e9afc9a267
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue