summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2023-03-22 10:08:35 +0200
committerGitHub <noreply@github.com>2023-03-22 10:08:35 +0200
commitdef14d13f552487267c670c97dc41dc25034f9b0 (patch)
treed4af250a71d58463dca8e12410f28d000fbf926e /web
parent104a84eab8fa520a78124c46bb3e0485e0c4de2d (diff)
/api/v2/X part 6 (#14785)
* additional check for consistency of rrdr * do not query the host if the contexts are not initialized for it
Diffstat (limited to 'web')
-rw-r--r--web/api/queries/weights.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/queries/weights.c b/web/api/queries/weights.c
index c6a3393ec3..04f1d07ac3 100644
--- a/web/api/queries/weights.c
+++ b/web/api/queries/weights.c
@@ -1103,7 +1103,7 @@ static void rrdset_weights_multi_dimensional_value(struct query_weights_data *qw
ONEWAYALLOC *owa = onewayalloc_create(16 * 1024);
RRDR *r = rrd2rrdr(owa, query_target_create(&qtr));
- if(rrdr_rows(r) != 1 || !r->d)
+ if(rrdr_rows(r) != 1 || !r->d || r->d != r->internal.qt->query.used)
goto cleanup;
QUERY_VALUE qv = {