diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-03-22 10:08:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 10:08:35 +0200 |
commit | def14d13f552487267c670c97dc41dc25034f9b0 (patch) | |
tree | d4af250a71d58463dca8e12410f28d000fbf926e /web/api | |
parent | 104a84eab8fa520a78124c46bb3e0485e0c4de2d (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/api')
-rw-r--r-- | web/api/queries/weights.c | 2 |
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 = { |