diff --git a/as/src/query/query.c b/as/src/query/query.c index 9524a7dd..e1353e52 100644 --- a/as/src/query/query.c +++ b/as/src/query/query.c @@ -2230,7 +2230,7 @@ aggr_query_job_reduce_cb(as_index_ref* r_ref, int64_t bval, void* udata) as_index* r = r_ref->r; - if (_job->si == NULL && excluded_set(r, _job->set_id)) { + if (excluded_set(r, _job->set_id)) { as_record_done(r_ref, ns); return true; } @@ -2630,7 +2630,7 @@ udf_bg_query_job_reduce_cb(as_index_ref* r_ref, int64_t bval, void* udata) as_index* r = r_ref->r; - if (_job->si == NULL && excluded_set(r, _job->set_id)) { + if (excluded_set(r, _job->set_id)) { as_record_done(r_ref, ns); return true; } @@ -3031,7 +3031,7 @@ ops_bg_query_job_reduce_cb(as_index_ref* r_ref, int64_t bval, void* udata) as_index* r = r_ref->r; - if (_job->si == NULL && excluded_set(r, _job->set_id)) { + if (excluded_set(r, _job->set_id)) { as_record_done(r_ref, ns); return true; }