8000 protoype for forceOneShardAttributeValue by jsteemann · Pull Request #14707 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

protoype for forceOneShardAttributeValue #14707

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

Merged
merged 13 commits into from
Sep 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
do not check single boolean twice :)
  • Loading branch information
hkernbach committed Sep 3, 2021
commit f7e42b01b700f55d4dc9b03d47b0efda97c70db7
3 changes: 1 addition & 2 deletions arangod/Aql/ShardLocking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ void ShardLocking::addNode(ExecutionNode const* baseNode, size_t snippetId,

std::string const& forceOneShardAttributeValue =
_query.queryOptions().forceOneShardAttributeValue;
bool isOneShardEnabled = baseNode->plan()->hasAppliedRule(OptimizerRule::clusterOneShardRule);
bool useRestrictedShard = isOneShardEnabled && !forceOneShardAttributeValue.empty();
bool useRestrictedShard = pushToSingleServer && !forceOneShardAttributeValue.empty();

auto addRestrictedShard = [&](aql::Collection const* col,
std::unordered_set<std::string>& restrictedShards) {
Expand Down
0