|
|
@ -320,15 +320,16 @@ func Run(opts *Options, version string, revision string) {
|
|
|
|
if !changed {
|
|
|
|
if !changed {
|
|
|
|
break
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
reset := false
|
|
|
|
if !useSnapshot {
|
|
|
|
if !useSnapshot {
|
|
|
|
newSnapshot, _ := chunkList.Snapshot()
|
|
|
|
newSnapshot, _ := chunkList.Snapshot()
|
|
|
|
// We want to avoid showing empty list when reload is triggered
|
|
|
|
// We want to avoid showing empty list when reload is triggered
|
|
|
|
// and the query string is changed at the same time i.e. command != nil && changed
|
|
|
|
// and the query string is changed at the same time i.e. command != nil && changed
|
|
|
|
if command == nil || len(newSnapshot) > 0 {
|
|
|
|
if command == nil || len(newSnapshot) > 0 {
|
|
|
|
snapshot = newSnapshot
|
|
|
|
snapshot = newSnapshot
|
|
|
|
|
|
|
|
reset = clearCache()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
reset := !useSnapshot && clearCache()
|
|
|
|
|
|
|
|
matcher.Reset(snapshot, input(reset), true, !reading, sort, reset)
|
|
|
|
matcher.Reset(snapshot, input(reset), true, !reading, sort, reset)
|
|
|
|
delay = false
|
|
|
|
delay = false
|
|
|
|
|
|
|
|
|
|
|
|