Skip to content
Merged
Changes from all commits
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
7 changes: 4 additions & 3 deletions src/main/java/net/spy/memcached/v2/AsyncArcusCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -927,9 +927,11 @@ public void receivedStatus(OperationStatus status) {
result.set(new AbstractMap.SimpleEntry<>(true, trimmedElement));
break;
case ERR_ELEMENT_EXISTS:
case ERR_NOT_FOUND:
result.set(new AbstractMap.SimpleEntry<>(false, trimmedElement));
break;
case ERR_NOT_FOUND:
result.set(null);
break;
case CANCELLED:
future.internalCancel();
break;
Expand Down Expand Up @@ -1046,15 +1048,14 @@ public ArcusFuture<BTreeElements<T>> bopGet(String key, BKey from, BKey to, BopG
public void receivedStatus(OperationStatus status) {
switch (status.getStatusCode()) {
case SUCCESS:
case ERR_NOT_FOUND_ELEMENT:
break;
case TRIMMED:
result.get().trimmed();
break;
case ERR_NOT_FOUND:
result.set(null);
break;
case ERR_NOT_FOUND_ELEMENT:
break;
case CANCELLED:
future.internalCancel();
break;
Expand Down
Loading