HBASE-2033 Shell scan 'limit' is off by one

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@888640 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2009-12-08 23:55:36 +00:00
parent d0b61e75ae
commit 99b6ece5c1
2 changed files with 2 additions and 1 deletions

View File

@ -122,6 +122,7 @@ Release 0.21.0 - Unreleased
HBASE-1994 Master will lose hlog entries while splitting if region has
empty oldlogfile.log (Lars George via Stack)
HBASE-2022 NPE in housekeeping kills RS
HBASE-2033 Shell scan 'limit' is off by one
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable

View File

@ -426,7 +426,6 @@ module HBase
while i.hasNext()
r = i.next()
row = String.from_java_bytes r.getRow()
count += 1
if limit != -1 and count >= limit
break
end
@ -437,6 +436,7 @@ module HBase
cell = toString(column, kv, maxlength)
@formatter.row([row, "column=%s, %s" % [column, cell]])
end
count += 1
end
@formatter.footer(now, count)
end