mirror of https://github.com/tidwall/tile38.git
scan count with wherein, fixes #217
This commit is contained in:
parent
cf33e0f2af
commit
ff4db894a2
|
@ -39,7 +39,8 @@ func (c *Controller) cmdScan(msg *server.Message) (res string, err error) {
|
||||||
}
|
}
|
||||||
sw.writeHead()
|
sw.writeHead()
|
||||||
if sw.col != nil {
|
if sw.col != nil {
|
||||||
if sw.output == outputCount && len(sw.wheres) == 0 && sw.globEverything == true {
|
if sw.output == outputCount && len(sw.wheres) == 0 &&
|
||||||
|
len(sw.whereins) == 0 && sw.globEverything == true {
|
||||||
count := sw.col.Count() - int(s.cursor)
|
count := sw.col.Count() - int(s.cursor)
|
||||||
if count < 0 {
|
if count < 0 {
|
||||||
count = 0
|
count = 0
|
||||||
|
|
Loading…
Reference in New Issue