Skip to content

Commit

Permalink
Merge pull request #3677 from danrub/fix/partialDeleteMultiValueIndex
Browse files Browse the repository at this point in the history
fix partial delete multi value index unexpected behavior
  • Loading branch information
lvca committed Mar 2, 2015
2 parents fea808f + f1f77f3 commit 9f11014
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ public boolean remove(Object key, final OIdentifiable value) {
return false;
}

if (values.remove(value)) {
if (value == null) {
indexEngine.remove(key);
}
else if (values.remove(value)) {
if (values.isEmpty())
indexEngine.remove(key);
else
Expand Down

0 comments on commit 9f11014

Please sign in to comment.