summaryrefslogtreecommitdiff
path: root/src/cube.c
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2024-08-12 17:02:25 +0800
committerchenzizhan <[email protected]>2024-08-12 17:02:25 +0800
commit1f1dbd6510812caacbb9eb81af8db59a1b23a718 (patch)
tree90a0d1999e0129e93c06c3b65ea10ebff9a145e4 /src/cube.c
parent7ccaafd2c6b2527ac9b98c4c376ce29a8c5e5cb9 (diff)
fix ci
Diffstat (limited to 'src/cube.c')
-rw-r--r--src/cube.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cube.c b/src/cube.c
index 0c340f0..ffbe89b 100644
--- a/src/cube.c
+++ b/src/cube.c
@@ -1200,13 +1200,13 @@ int cube_counter_get(const struct cube *cube, int metric_id, const struct field_
long long count = 0;
void *exdata_dummy = NULL;
- heavy_keeper_one_point_query(cube->heavykeeper, dimension_in_string, dimension_string_len, &count, &exdata_dummy);
+ int tmp_ret = heavy_keeper_one_point_query(cube->heavykeeper, dimension_in_string, dimension_string_len, &count, &exdata_dummy);
*value = count;
free(dimension_in_string);
- if (exdata_dummy == NULL) {
+ if (tmp_ret < 0) {
return FS_ERR_INVALID_DIMENSION;
- }
+ }
if (count == 0) {
return FS_ERR_INVALID_METRIC_ID;
}