Skip to content

Commit

Permalink
-fix: DELETE FROM index:<indexName> WHERE key = <key>, were failing o…
Browse files Browse the repository at this point in the history
…n composite key, when rid wasn't specified.

       expected behavior, to remove all values under specified (partial/full) key
-remarks: all test passed after fix
  • Loading branch information
danrub committed Mar 2, 2015
1 parent 231e9bd commit bb0eb7c
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 bb0eb7c

Please sign in to comment.