Skip to content

Commit

Permalink
exporting: change priority to synchronous when calculating value (net…
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyam8 committed Jun 28, 2023
1 parent 44d885e commit 26ec3b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporting/process_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ NETDATA_DOUBLE exporting_calculate_value_from_stored_data(
size_t counter = 0;
NETDATA_DOUBLE sum = 0;

for (storage_engine_query_init(rd->tiers[0].backend, rd->tiers[0].db_metric_handle, &handle, after, before, STORAGE_PRIORITY_LOW); !storage_engine_query_is_finished(&handle);) {
for (storage_engine_query_init(rd->tiers[0].backend, rd->tiers[0].db_metric_handle, &handle, after, before, STORAGE_PRIORITY_SYNCHRONOUS); !storage_engine_query_is_finished(&handle);) {
STORAGE_POINT sp = storage_engine_query_next_metric(&handle);
points_read++;

Expand Down

0 comments on commit 26ec3b1

Please sign in to comment.