8000 Fix BTS-548 array index wrong optimization by neunhoef · Pull Request #14781 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Fix BTS-548 array index wrong optimization #14781

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 re 8000 lated emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 20, 2021

Conversation

neunhoef
Copy link
Member

This fixes BTS-548, see details there. Longer story short: if there is an array index and there is a document update or replace, then we had a shortcut which bypasses the array index update if none of the indexed attributes has changed. In the array
case the change of an array to an empty array was not recognized and thus the index was not updated.

  • Fix attributesEqual for update/replace array index changes.
  • CHANGELOG.

Scope & Purpose

(Please describe the changes in this PR for reviewers - mandatory)

[] Bugfix (requires CHANGELOG entry)
[
] CHANGELOG entry made

Backports:

No backports required
[*] Backports required for: 3.7, 3.8

Related Information

(Please reference tickets / specification / other PRs etc)

[*] GitHub issue / Jira ticket number: BTS-548

Testing & Verification

(Please pick either of the following options)

[] The behavior in this PR was manually tested
[
] This PR adds tests that were used to verify all changes:

[*] Added new integration tests (e.g. in shell_server / shell_server_aql)

Copy link
Contributor
@jsteemann jsteemann left a comment

Choose a reason for hiding this comment

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

LGTM

@KVS85 KVS85 merged commit 9b489d2 into 3.7 Sep 20, 2021
@KVS85 KVS85 deleted the bug-fix-3.7/array-index-wrong-optimization branch September 20, 2021 15:19
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.

3 participants
0