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:
parent
d0b61e75ae
commit
99b6ece5c1
|
@ -122,6 +122,7 @@ Release 0.21.0 - Unreleased
|
||||||
HBASE-1994 Master will lose hlog entries while splitting if region has
|
HBASE-1994 Master will lose hlog entries while splitting if region has
|
||||||
empty oldlogfile.log (Lars George via Stack)
|
empty oldlogfile.log (Lars George via Stack)
|
||||||
HBASE-2022 NPE in housekeeping kills RS
|
HBASE-2022 NPE in housekeeping kills RS
|
||||||
|
HBASE-2033 Shell scan 'limit' is off by one
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-1760 Cleanup TODOs in HTable
|
HBASE-1760 Cleanup TODOs in HTable
|
||||||
|
|
|
@ -426,7 +426,6 @@ module HBase
|
||||||
while i.hasNext()
|
while i.hasNext()
|
||||||
r = i.next()
|
r = i.next()
|
||||||
row = String.from_java_bytes r.getRow()
|
row = String.from_java_bytes r.getRow()
|
||||||
count += 1
|
|
||||||
if limit != -1 and count >= limit
|
if limit != -1 and count >= limit
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
@ -437,6 +436,7 @@ module HBase
|
||||||
cell = toString(column, kv, maxlength)
|
cell = toString(column, kv, maxlength)
|
||||||
@formatter.row([row, "column=%s, %s" % [column, cell]])
|
@formatter.row([row, "column=%s, %s" % [column, cell]])
|
||||||
end
|
end
|
||||||
|
count += 1
|
||||||
end
|
end
|
||||||
@formatter.footer(now, count)
|
@formatter.footer(now, count)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue