You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2011/03/17 21:59:43 UTC

svn commit: r1082691 - in /hbase/trunk: CHANGES.txt src/main/ruby/hbase/table.rb

Author: stack
Date: Thu Mar 17 20:59:43 2011
New Revision: 1082691

URL: http://svn.apache.org/viewvc?rev=1082691&view=rev
Log:
HBASE-3595 get_counter broken in shell

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/main/ruby/hbase/table.rb

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1082691&r1=1082690&r2=1082691&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Thu Mar 17 20:59:43 2011
@@ -41,6 +41,7 @@ Release 0.91.0 - Unreleased
    HBASE-3515  [replication] ReplicationSource can miss a log after RS comes
                out of GC
    HBASE-3665  tighten assertions for testBloomFilterSize
+   HBASE-3595  get_counter broken in shell
 
   IMPROVEMENTS
    HBASE-3290  Max Compaction Size (Nicolas Spiegelberg via Stack)  

Modified: hbase/trunk/src/main/ruby/hbase/table.rb
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/ruby/hbase/table.rb?rev=1082691&r1=1082690&r2=1082691&view=diff
==============================================================================
--- hbase/trunk/src/main/ruby/hbase/table.rb (original)
+++ hbase/trunk/src/main/ruby/hbase/table.rb Thu Mar 17 20:59:43 2011
@@ -191,7 +191,7 @@ module Hbase
       return nil if result.isEmpty
 
       # Fetch cell value
-      cell = result.list.first
+      cell = result.list[0]
       org.apache.hadoop.hbase.util.Bytes::toLong(cell.getValue)
     end