Skip to content

chore: Improve scope/aggregator usage in replies #5286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dranikpg
Copy link
Contributor

No description provided.

@@ -179,10 +179,10 @@ void BloomFamily::MExists(CmdArgList args, const CommandContext& cmd_cntx) {
return OpExists(t->GetOpArgs(shard), key, args);
};

OpResult res = cmd_cntx.tx->ScheduleSingleHopT(std::move(cb));
auto res = cmd_cntx.tx->ScheduleSingleHopT(std::move(cb));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please do not convert to auto - when it hurts readability

@dranikpg dranikpg marked this pull request as ready for review June 14, 2025 19:40
void SendSimpleStrArr(const facade::ArgRange& strs);
void SendBulkStrArr(const facade::ArgRange& strs, CollectionType ct = ARRAY);
void SendLongArr(absl::Span<const long> longs);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of changing result types - let's make it more flexible.

template<typename I>` void SendLongArr(absl::Span<const I> longs) {
}

@@ -576,8 +576,8 @@ OpResult<string> OpIndex(const OpArgs& op_args, std::string_view key, long index
return str;
}

OpResult<vector<uint32_t>> OpPos(const OpArgs& op_args, string_view key, string_view element,
int rank, uint32_t count, uint32_t max_len) {
OpResult<vector<long>> OpPos(const OpArgs& op_args, string_view key, string_view element, int rank,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see my comment above

@dranikpg dranikpg requested a review from romange June 15, 2025 16:12
@dranikpg
Copy link
Contributor Author

Cluster family test failed spuriously in the previour CI run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants