correct bug where slices were being ignored

This commit is contained in:
Matt Jaffee 2018-05-25 17:12:56 -05:00
parent 47f7beaecc
commit b3b29fad47
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF

View file

@ -82,7 +82,7 @@ func (e *Executor) Execute(ctx context.Context, index string, q *pql.Query, slic
// If slices are specified, then use that value for slices. If slices aren't
// specified, then include all of them.
if needsSlices {
if len(slices) == 0 && needsSlices {
// Round up the number of slices.
idx := e.Holder.Index(index)
if idx == nil {