xfree(se->mergekey);
se->mergekey = *mergekey ? xstrdup(mergekey) : 0;
clients_research = 1;
- session_log(se, YLOG_DEBUG, "search_sort: new mergekey = %s",
+ session_log(se, YLOG_DEBUG, "session_sort: new mergekey = %s",
mergekey);
}
if (clients_research == 0)
break;
if (sr)
{
- session_log(se, YLOG_DEBUG, "search_sort: field=%s increasing=%d type=%d already fetched",
+ session_log(se, YLOG_DEBUG, "session_sort: field=%s increasing=%d type=%d already fetched",
field, increasing, type);
return;
}
}
- session_log(se, YLOG_DEBUG, "search_sort: field=%s increasing=%d type=%d must fetch",
+ session_log(se, YLOG_DEBUG, "session_sort: field=%s increasing=%d type=%d must fetch",
field, increasing, type);
// We need to reset reclist on every sort that changes the records, not just for position
if (clients_research)
{
session_log(se, YLOG_DEBUG,
- "Reset results due to %d clients researching",
+ "session_sort: reset results due to %d clients researching",
clients_research);
session_clear_set(se, sp);
}
sr->type = type;
sr->next = se->sorted_results;
se->sorted_results = sr;
- session_log(se, YLOG_DEBUG, "No research/ingesting done");
+ session_log(se, YLOG_DEBUG, "session_sort: no research/ingesting done");
return ;
}
session_log(se, YLOG_DEBUG, "Re- search/ingesting for clients due to change in sort order");
client_get_state(cl) == Client_Working) {
client_start_search(cl);
}
- else {
+ else
+ {
session_log(se, YLOG_DEBUG,
- "Client %s: No re-start/ingest in show. Wrong client state: %d",
+ "session_sort: %s: No re-start/ingest in show. "
+ "Wrong client state: %d",
client_get_id(cl), client_get_state(cl));
}
-
}
}