diff options
| author | chenzizhan <[email protected]> | 2024-08-12 17:02:25 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2024-08-12 17:02:25 +0800 |
| commit | 1f1dbd6510812caacbb9eb81af8db59a1b23a718 (patch) | |
| tree | 90a0d1999e0129e93c06c3b65ea10ebff9a145e4 /src/cube.c | |
| parent | 7ccaafd2c6b2527ac9b98c4c376ce29a8c5e5cb9 (diff) | |
fix ci
Diffstat (limited to 'src/cube.c')
| -rw-r--r-- | src/cube.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |
