Skip to content

Commit

Permalink
INTERNAL: Change addOp logic in mutate api.
Browse files Browse the repository at this point in the history
  • Loading branch information
brido4125 committed Jul 12, 2024
1 parent da44d36 commit a215e4d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main/java/net/spy/memcached/MemcachedClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -1788,17 +1788,17 @@ private OperationFuture<Long> asyncMutate(Mutator m, String key, int by, long de
final CountDownLatch latch = new CountDownLatch(1);
final OperationFuture<Long> rv = new OperationFuture<>(
latch, operationTimeout);
Operation op = addOp(key, opFact.mutate(m, key, by, def, exp,
new OperationCallback() {
public void receivedStatus(OperationStatus s) {
rv.set(Long.parseLong(s.isSuccess() ? s.getMessage() : "-1"), s);
}
Operation op = opFact.mutate(m, key, by, def, exp, new OperationCallback() {
public void receivedStatus(OperationStatus s) {
rv.set(Long.parseLong(s.isSuccess() ? s.getMessage() : "-1"), s);
}

public void complete() {
latch.countDown();
}
}));
public void complete() {
latch.countDown();
}
});
rv.setOperation(op);
addOp(key, op);
return rv;
}

Expand Down

0 comments on commit a215e4d

Please sign in to comment.