Fix reverse listing in bolt
parent
b5a6d24f7d
commit
c0b6d70899
|
|
@ -48,8 +48,8 @@ func (bc *BoltClient) List(namespace, key string, asc bool, limit int) ([]string
|
||||||
found = append(found, string(k))
|
found = append(found, string(k))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
key += "}}}}}}}}}}}}}}}}}}}}}}}}}}}}}"
|
c.Seek([]byte(key + "}}}}}}}}}}}}}}"))
|
||||||
for k, _ := c.Seek([]byte(key)); k != nil && len(found) < limit; k, _ = c.Prev() {
|
for k, _ := c.Prev(); k != nil && len(found) < limit; k, _ = c.Prev() {
|
||||||
found = append(found, string(k))
|
found = append(found, string(k))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue