From: Dennis Schafroth Date: Fri, 28 Oct 2011 13:40:19 +0000 (+0200) Subject: Merge branch 'master' into spell-check X-Git-Tag: v1.6.5~2^2 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=e3b65542901b6536afd8a766340b3dc7af9673f2;hp=-c;p=pazpar2-moved-to-github.git Merge branch 'master' into spell-check --- e3b65542901b6536afd8a766340b3dc7af9673f2 diff --combined src/session.c index c8f1df5,8b76a53..439ad7b --- a/src/session.c +++ b/src/session.c @@@ -438,7 -438,7 +438,7 @@@ static int prepare_map(struct session * } } sdb->map = normalize_cache_get(se->normalize_cache, - se->service->server->config, s); + se->service, s); if (!sdb->map) return -1; } @@@ -921,8 -921,6 +921,8 @@@ struct session *new_session(NMEM nmem, return session; } +const char * client_get_suggestions_xml(struct client *cl, WRBUF wrbuf); + static struct hitsbytarget *hitsbytarget_nb(struct session *se, int *count, NMEM nmem) { @@@ -951,9 -949,6 +951,9 @@@ res[*count].connected = client_get_connection(cl) ? 1 : 0; session_settings_dump(se, client_get_database(cl), w); res[*count].settings_xml = nmem_strdup(nmem, wrbuf_cstr(w)); + wrbuf_rewind(w); + wrbuf_puts(w, ""); + res[*count].suggestions_xml = nmem_strdup(nmem, client_get_suggestions_xml(cl, w)); wrbuf_destroy(w); (*count)++; }