X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Ffrontend%2Fquery.c;fp=src%2Ffrontend%2Fquery.c;h=af0aa5424eb7eee46af1fb5561dcb27170275f09;hp=302c586a6c227de98b7e3ae035f58224a135a7de;hb=daf9e92a1a3bf86a5cdbb2f3cc7d9c37f050174d;hpb=55f6919736b7574b8fb905eced926d8c003411c6 diff --git a/src/frontend/query.c b/src/frontend/query.c index 302c586..af0aa54 100644 --- a/src/frontend/query.c +++ b/src/frontend/query.c @@ -136,7 +136,8 @@ exec_query(sdb_ast_node_t *ast, sdb_strbuf_t *buf, sdb_strbuf_t *errbuf) f = sdb_store_json_formatter(buf, type, flags); sdb_strbuf_memcpy(buf, &res_type, sizeof(res_type)); - status = sdb_plugin_query(ast, &sdb_store_json_writer, SDB_OBJ(f), errbuf); + status = sdb_plugin_query(ast, &sdb_store_json_writer, SDB_OBJ(f), + &(sdb_query_opts_t){ true }, errbuf); if (status < 0) sdb_strbuf_clear(buf); sdb_store_json_finish(f); @@ -250,7 +251,8 @@ exec_timeseries(sdb_ast_timeseries_t *ts, sdb_strbuf_t *buf, sdb_strbuf_t *errbu opts.end = ts->end; status = sdb_plugin_query(SDB_AST_NODE(&fetch), - &metric_fetcher, SDB_OBJ(&obj), errbuf); + &metric_fetcher, SDB_OBJ(&obj), + &(sdb_query_opts_t){ true }, errbuf); if ((status < 0) || (! st.type) || (! st.id)) { sdb_log(SDB_LOG_ERR, "frontend: Failed to fetch time-series '%s/%s' " "- no data-store configured for the stored metric",