HBASE-13723 In table.rb scanners are never closed.
This commit is contained in:
parent
0dc1a65f2e
commit
c9217ba1b5
|
@ -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