Permalink
Browse files

Fixed failing Unlock test

Note this isn't a complete fix for handling unlock.  Several
possible responses are ignored.  That is tracked under SPY-97
for now.

Change-Id: I20b0e9734c7fa170edcd38c76e59f353f4a4df41
Reviewed-on: http://review.couchbase.org/19538
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
  • Loading branch information...
ragsns authored and ingenthr committed Aug 13, 2012
1 parent 9455c1a commit 4b27226dc2e7f1d29b7d268570d68169f1ec0bb2
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/main/java/net/spy/memcached/protocol/binary/UnlockOperationImpl.java
@@ -46,6 +46,11 @@ public void initialize() {
prepareBuffer(key, cas, EMPTY_BYTES);
}
+ @Override
+ protected void decodePayload(byte[] pl) {
+ getCallback().receivedStatus(STATUS_OK);
+ }
+
@Override
public String toString() {
return super.toString() + " Cas: " + cas;

0 comments on commit 4b27226

Please sign in to comment.