From: Heikki Levanto Date: Wed, 20 May 2015 12:38:07 +0000 (+0200) Subject: MPSPARQL-22: Renamed 'explain' to 'info' X-Git-Tag: v0.6~10 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=ef8322818ee1785123034495aa586b0f55629b05;p=mp-sparql-moved-to-github.git MPSPARQL-22: Renamed 'explain' to 'info' Since cat not do a real explain (zeerex) record. --- diff --git a/src/filter_sparql.cpp b/src/filter_sparql.cpp index 18520bd..8cf720a 100644 --- a/src/filter_sparql.cpp +++ b/src/filter_sparql.cpp @@ -677,16 +677,15 @@ Z_Records *yf::SPARQL::Session::explain_fetch( if ( idx >= fset->explaindblist.size() ) break; ConfPtr cp = fset->explaindblist[idx]; - package.log("sparql", YLOG_LOG, "fetch explain %d:%s", idx, cp->db.c_str() ); mp::wrbuf w; - wrbuf_puts(w,"\n"); + wrbuf_puts(w,"\n"); wrbuf_puts(w," \n"); wrbuf_puts(w," "); wrbuf_xmlputs(w, cp->db.c_str()); wrbuf_puts(w,"\n"); wrbuf_puts(w," \n"); yaz_sparql_explain_indexes( cp->s, w, 2); - wrbuf_puts(w,"\n"); + wrbuf_puts(w,"\n"); rec->u.databaseOrSurDiagnostics->records[i] = (Z_NamePlusRecord *) odr_malloc(odr, sizeof(Z_NamePlusRecord)); @@ -946,7 +945,7 @@ void yf::SPARQL::Session::handle_z(mp::Package &package, Z_APDU *apdu_req) m_frontend_sets.erase(req->resultSetName); fset->db = db; - if ( db != "explain" ) + if ( db != "info" ) { it = m_sparql->db_conf.begin(); for (; it != m_sparql->db_conf.end(); it++)