yezhizi commented on code in PR #3246:
URL: https://github.com/apache/kvrocks/pull/3246#discussion_r2492870570
##########
src/types/redis_timeseries.cc:
##########
@@ -2295,4 +2295,19 @@ rocksdb::Status TimeSeries::IsTSSubKeyExpired(const
TimeSeriesMetadata &metadata
return rocksdb::Status::OK();
}
+rocksdb::Status TimeSeries::QueryIndex(engine::Context &ctx, const
TSMGetOption::FilterOption &filter_option,
+ std::vector<std::string> *res) {
+ std::vector<std::string> user_keys;
+
+ auto s = getTSKeyByFilter(ctx, filter_option, &user_keys);
+ if (!s.ok()) return s;
+
+ res->resize(user_keys.size());
+ for (size_t i = 0; i < user_keys.size(); i++) {
+ auto &res_i = (*res)[i];
+ res_i = std::move(user_keys[i]);
+ }
+ return s;
Review Comment:
```suggestion
return getTSKeyByFilter(ctx, filter_option, res);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]