Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed command aggregation for legacy indexes
LegacyIndexTransactionStateImpl is responsible for tracking node/relationship additions and removals. It uses two separate maps for this. Each map has index name as a key and list of corresponding commands as a value. When index is dropped, corresponding list of commands is cleared. However additions to relationship legacy index ended up in the map dedicated to node legacy index and removals from relationship legacy index cleared commands from the node map. In particular this was a problem for node and relationship indexes that had same name. It could lead to missing entries in the legacy index after transaction completed successfully. This commit makes LegacyIndexTransactionStateImpl use relationship map for relationship commands. It also improves equals/hashCode methods for legacy index commands.
- Loading branch information
Showing
5 changed files
with
463 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.