Status code 35 is taken from an AFP packet capture.
Clients will now show a "progress wheel" while waiting for initial
results.
Signed-off-by: Ralph Boehme <rb@sernet.de>
+Changes in 3.1.7
+================
+* UPD: Spotlight: enhance behaviour for long running queries, client
+ will now show "progress wheel" while waiting for first results.
+
Changes in 3.1.6
================
* FIX: Spotlight: fix for long running queries
static bool add_results(sl_array_t *array, slq_t *slq)
{
sl_filemeta_t *fm;
- uint64_t status = 0;
+ uint64_t status;
/* FileMeta */
fm = talloc_zero(array, sl_filemeta_t);
return false;
}
+ switch (slq->slq_state) {
+ case SLQ_STATE_RUNNING:
+ /*
+ * Wtf, why 35? Taken from an AFP capture.
+ */
+ status = 35;
+ break;
+
+ default:
+ status = 0;
+ break;
+ }
+
dalloc_add_copy(array, &status, uint64_t);
dalloc_add(array, slq->query_results->cnids, sl_cnids_t);
if (slq->query_results->num_results > 0) {