mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 19:50:13 +01:00
pilerexport should syslog the sphinx query
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
edceee12c9
commit
e6607b0bf1
@ -170,6 +170,8 @@ uint64 run_query(struct session_data *sdata, struct session_data *sdata2, char *
|
|||||||
|
|
||||||
snprintf(s, sizeof(s)-1, "SELECT id FROM %s WHERE %s AND id > %llu ORDER BY id ASC LIMIT 0,%d", index_list, where_condition, last_id, max_matches);
|
snprintf(s, sizeof(s)-1, "SELECT id FROM %s WHERE %s AND id > %llu ORDER BY id ASC LIMIT 0,%d", index_list, where_condition, last_id, max_matches);
|
||||||
|
|
||||||
|
syslog(LOG_PRIORITY, "sphinx query: %s", s);
|
||||||
|
|
||||||
if(mysql_real_query(&(sdata2->mysql), s, strlen(s)) == 0){
|
if(mysql_real_query(&(sdata2->mysql), s, strlen(s)) == 0){
|
||||||
MYSQL_RES *res = mysql_store_result(&(sdata2->mysql));
|
MYSQL_RES *res = mysql_store_result(&(sdata2->mysql));
|
||||||
if(res != NULL){
|
if(res != NULL){
|
||||||
|
Loading…
Reference in New Issue
Block a user