You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by la...@apache.org on 2015/05/28 10:14:37 UTC

hbase git commit: HBASE-13723 In table.rb scanners are never closed.

Repository: hbase
Updated Branches:
  refs/heads/master 81b9abab0 -> e9afc9a26


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


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e9afc9a2
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e9afc9a2
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e9afc9a2

Branch: refs/heads/master
Commit: e9afc9a267b0a8579840145f1dc584fd246d0fbc
Parents: 81b9aba
Author: Lars George <la...@apache.org>
Authored: Thu May 28 10:11:25 2015 +0200
Committer: Lars George <la...@apache.org>
Committed: Thu May 28 10:14:15 2015 +0200

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/hbase/table.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e9afc9a2/hbase-shell/src/main/ruby/hbase/table.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/hbase/table.rb b/hbase-shell/src/main/ruby/hbase/table.rb
index 960eafc..5d0d8cf 100644
--- a/hbase-shell/src/main/ruby/hbase/table.rb
+++ b/hbase-shell/src/main/ruby/hbase/table.rb
@@ -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