request.setTotalBodyLength(keyLength + extrasLength);
request.setExtrasLength(extrasLength);
return request;
}
private static BinaryMemcacheRequest handleUnlockRequest(final UnlockRequest msg) {
<BUG>String key = msg.key();
short keyLength = (short) msg.keyBytes().length;
BinaryMemcacheRequest request = new DefaultBinaryMemcacheRequest(key);</BUG>
request.setOpcode(OP_UNLOCK);
request.setKeyLength(keyLength);

request.setTotalBodyLength(keyLength + extrasLength);
request.setExtrasLength(extrasLength);
return request;
}
private static BinaryMemcacheRequest handleUnlockRequest(final UnlockRequest msg) {
byte[] key = msg.keyBytes();
short keyLength = (short) key.length;
BinaryMemcacheRequest request = new DefaultBinaryMemcacheRequest(key);
request.setOpcode(OP_UNLOCK);
request.setKeyLength(keyLength);
