From: Sebastian Harl Date: Tue, 26 Jan 2016 23:16:41 +0000 (+0100) Subject: frontend/query: Add the DATA type to TIMESERIES replies. X-Git-Tag: sysdb-0.8.0~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31c05eddfdb2859d5d1dbfe7a1e2a1be19131fc3;p=sysdb.git frontend/query: Add the DATA type to TIMESERIES replies. This was lost in 9a96acd759c31211aa512e174339a9c178c4eb83. --- diff --git a/src/frontend/query.c b/src/frontend/query.c index 2e28324..f8d6a1f 100644 --- a/src/frontend/query.c +++ b/src/frontend/query.c @@ -249,6 +249,8 @@ exec_timeseries(sdb_ast_timeseries_t *ts, sdb_strbuf_t *buf, sdb_strbuf_t *errbu if (status >= 0) { series = sdb_plugin_fetch_timeseries(st.type, st.id, &opts); if (series) { + uint32_t res_type = htonl(SDB_CONNECTION_TIMESERIES); + sdb_strbuf_memcpy(buf, &res_type, sizeof(res_type)); sdb_timeseries_tojson(series, buf); sdb_timeseries_destroy(series); }