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))
|
org.apache.hadoop.hbase.util.Bytes::toStringBinary(row.getRow))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
scanner.close()
|
||||||
# Return the counter
|
# Return the counter
|
||||||
return count
|
return count
|
||||||
end
|
end
|
||||||
|
@ -525,8 +526,8 @@ EOF
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
scanner.close()
|
|
||||||
|
|
||||||
|
scanner.close()
|
||||||
return ((block_given?) ? count : res)
|
return ((block_given?) ? count : res)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue