hbase-store: address review comment

This commit is contained in:
disksing
2015-11-08 11:04:59 +08:00
parent 5911e6fabb
commit 13bf573ecb

View File

@ -104,10 +104,10 @@ func (s *hbaseSnapshot) Scan(start, end kv.Key, limit int) (map[string][]byte, e
for i := 0; i < limit; i++ {
r := scanner.Next()
if r != nil && len(r.Columns) > 0 {
k := r.Row
k := string(r.Row)
v := r.Columns[FmlAndQual].Value
m[string(k)] = v
s.cache[string(k)] = v
m[k] = v
s.cache[k] = v
} else {
break
}